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.
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.
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?
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
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?
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] Code (markup): Thanks, and I hope someone finds this useful!
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