WebFaction
Community site: login faq

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
1124
accept rate: 0%

edited 28 Dec '10, 10:41


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

permanent link

answered 28 Dec '10, 10:44

tie
1.4k13
accept rate: 44%

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 ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×128
×76

question asked: 28 Dec '10, 10:40

question was seen: 12,370 times

last updated: 29 Dec '10, 14:38

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM