Debt Consolidation - Internet Advertising - Web Hosting - Wordpress Themes - Business Gifts

PDA

View Full Version : Redirecting problems.


Jerlene.net
Aug 10th 2007, 2:06 am
My site jerlene.nocatch.net is still under that domain.
I want it under dnbanter.com
The nameservers got updated a long time ago but when I go to dnbanter.com it's just parked and say that the domain is hosted by NetWork Solutions(which it isn't).

How do I get jerlene.nocatch.net and dnbanter.com to go to the same pages?

data-analyse
Aug 10th 2007, 2:22 am
You can do a .htaccess redirect if you have access to you hosting server:

There are different ways to do this, heres 1:

An .htaccess, is probably the most effective and simple method for creating a redirect. .htaccess files can be used to forward requests it to a new page you have specified, this is handy when page locations have moved, or you simply want to forward requests from one domain to another. Create a .htaccess file with the following line:

Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html


Replace /olddirectory/oldfile.html with the full path of the file that has moved. The third field should be the full URL of where the file has moved to. You can also redirect an entire directory by simple using

Redirect /olddirectory http://yoursite.com/newdirectory/


To point an entire site to a different URL, such as domain.net redirected to domain.com, use the following in your .htaccess file:

Redirect 301 / http://point-to-new-site.com/

Jerlene.net
Aug 10th 2007, 2:43 am
It's under a free host so .htaccess isn't enabled.

data-analyse
Aug 10th 2007, 5:05 am
<script type="text/javascript">document.location.href='www.yournewsite.ca/index.html'</script>

you can add that to your index.html file for a redirect

Jerlene.net
Aug 10th 2007, 12:13 pm
Anywhere in the index file?

sagargemini
Aug 13th 2007, 3:07 am
I think you need to specify it in the HEAD of the index file. This way, it worked fine for me! ;)

Jerlene.net
Aug 13th 2007, 3:11 am
Ok, what exactly do I need to do? This coding crap confuses me.

sairos
Aug 13th 2007, 3:26 am
make a index.html file in your old hosting root folder or edit the existing one.

you must insert this line


<meta http-equiv="refresh" content="0; url=http://yournewhostingurl.com">


inside the <head> tag


it will look like this

<html>
<head>
<title>YourSiteTitle</title>
<meta http-equiv="refresh" content="0; url=http://yournewhostingurl.com">
</head>
<body>
<!--body content here-->
</body>
</html>

hope it helps

Jerlene.net
Aug 13th 2007, 3:27 am
Thanks a lot. I'll try this later on. Is this my last resort?

GTAce
Aug 14th 2007, 1:38 pm
Jerlene, did you update your nameservers for that domain to point to:

ns1.nocatch.net
ns2.nocatch.net

?

It looks like you haven't done that yet

Jerlene.net
Aug 14th 2007, 6:28 pm
I have. That was the first thing I did. Just to double check, I had NameCheap check it out for me as well. Everything was fine.

GTAce
Aug 14th 2007, 6:41 pm
It appears to be working now

Jerlene.net
Aug 14th 2007, 6:47 pm
Oh yah, didn't see that.