Forum Moderators: phranque
Trying to redirect entirety of example.org to example.ca
I have this code
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.example.ca/$1 [R=301,L]
When I do a server header check on example.org, I get a 200 response but I think I should be getting a 301?
Am I right or not?
Thanks for your help!
[edited by: Pico_Train at 10:00 am (utc) on Aug. 13, 2007]
[edited by: jdMorgan at 2:09 pm (utc) on Aug. 13, 2007]
[edit reason] example.com [/edit]
Some server headers checkers leave out all responses except for the final one.
I recommend the "Live HTTP Headers" extension for Firefox and Mozilla browsers for output that you can trust.
Jim
The thing is this:
1. There seems to be 1 account.
2. When I ftp in I see 2 folders for example.org and example.net. Seems to me that the example.ca is the main account and those 2 domains are pointed at the .ca content.
3. .htaccess doesn't seem to be allowed or is overwritten by something the hosts are doing...
Is this possible?
How did you conclude this?
Does the host provide a "control panel" that allows you to add redirects?
Be sure that you're putting the 301 redirect code into the "unwanted" domains, to redirect them to the one you want.
If the domains have separate "folders," then you may be able to use robots.txt as a last resort. The problems you'll have will be that you'll lose all link-juice for any links to the 'wrong' domains, and that it will likely take a very long time for the changes in robots.txt to take full effect. You might speed up Google by using their Webmaster Tools URL removal feature, but then there are several other search engines as well...
Test each domain *very* thoroughly before taking drastic steps such as the Google URL removal.
Jim