Debt Consolidation - World Websites - Online Advertising - Debt Consolidation - Travel news

PDA

View Full Version : How Should I Forward My Whole Domain?


meamrussian
Jun 17th 2007, 7:39 am
I have a website that I no longer want up anymore, so instead of just taking it down, I want to make use of its traffic and forward it to another site of mine. How should I do this? I don't just want to forward the domain itself, but every subdomain or file that can be accessed through this site. How should I do this? Using the domain forwarding in my registrar takes time to take effect, and anyway last time I tried it didn't work. Perhaps there's a way using javascript, or htaccess?

Thanks.

hasbehas
Jun 17th 2007, 7:43 am
I would have just parked it on to the new domain by cpanel. :D

meamrussian
Jun 17th 2007, 8:13 am
What do you mean? How does this work? Can you please clarify?

Thanks.

hasbehas
Jun 17th 2007, 9:56 am
on my hosting; cpanel there is an option "Park a domain" . You can park the unused domains on to some other domains.

I give you an example. www.kusadasiproperty.biz is main domain with hosting account etc. www.kusadasirealestate.org is a domain that is parked on to kusadasiproperty.biz . See it for your self, you'll see what I mean.

Maneel
Jun 17th 2007, 10:37 am
.htaccess would be a better solution

meamrussian
Jun 18th 2007, 3:19 pm
Well, I tried parking the domain, but it's not working. I get the default "cpanel installed" page. And, for people trying to access specific files, such as index.php, they get a page not found error. What should I do? How do I do the htaccess thing?

Boulder
Jun 18th 2007, 3:48 pm
I believe you could use a 301 redirect to do that. Should be able to set it up in cPanel, I think it uses .htaccess to work as well. I have not set up a 301 myself, However have heard a lot about using them.

You could also set up a redirect for that domain name, at the domain register (where ever your domain would be parked) you would set it up to redirect to what ever domain you wanted... with a record there!

domain1[dot]com = redirects to = domain2[dot]com

Boulder

meamrussian
Jun 18th 2007, 4:55 pm
I tried doing domain forwarding from the registrar already, and it didn't work so well, and it took a long time to forward. Does anyone know the htaccess code to use to forward my whole domain to another? I know that it should look something like this:

RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

This one isn't entirely correct though. Can someone fix it please?

meamrussian
Jun 18th 2007, 5:09 pm
Ah, I just found the right code. I'll paste it here so other people can use it:

Options +FollowSymLinks
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^olddomain.com$
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

Thanks, and I hope someone finds this useful!

Boulder
Jun 19th 2007, 1:49 am
Yep, looks like your on to something now! (The 301) Good job! Tell me was the proper code found through cpanel, or by searching the web else where?

Boulder

mpcovcd
Jun 19th 2007, 7:45 am
Go into your cpanel and forward the domain, or go into your registrar and forward your domain