How does Webfaction deal with domain redirects? By this I mean the following, say I've 3 domains, 1.co, 1.co.uk and 1.com and I want 1.co to be the definitive site with the other two parked and redirecting to it. I also don't want Google to index all 3. Can't see how this is done in the control panel.. r asked 28 Dec '10, 10:40 russell666 |
You would normally mount the extra domains that you want to redirect to a separate app (which does nothing but redirecting the extra domains to the main one). This is described at http://docs.webfaction.com/software/static.html#redirect-a-domain-with-a-static-cgi-php-app answered 28 Dec '10, 10:44 tie Cheers, that works for one domain - what would I need to add please for adding a 2nd redirect?
(29 Dec '10, 08:07)
russell666
You can do the same thing for the other domain. Create a new redirect application for the other domain as shown in the instructions above. Or, if you want all of your domains to go to your .co site and you only want to use one application, use the following in your .htaccess: Redirect 301 / http://www.yourdomain.co/ Then attach all of the domains you need to redirect to the same redirect application.
(29 Dec '10, 08:19)
aaronh ♦♦
Ach, just realised that all I need is the 1 line of code - I thought I needed to append it to the original
(29 Dec '10, 14:37)
russell666
Sorry for the confusion. Yes, this one line would replace everything else.
(29 Dec '10, 14:38)
aaronh ♦♦
|