Forum Moderators: phranque

Message Too Old, No Replies

From one domain to another

         

Pico_Train

10:00 am on Aug 13, 2007 (gmt 0)

10+ Year Member



Hi there,

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]

jdMorgan

2:11 pm on Aug 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume that your redirect does in fact appear to be working and that therefore, this is a "header checking" question.

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

Pico_Train

5:35 pm on Aug 13, 2007 (gmt 0)

10+ Year Member



Ok thanks for that, I downloaded the plugin and gave it a go. All I see is 200 responses no 301.

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?

Pico_Train

6:43 pm on Aug 13, 2007 (gmt 0)

10+ Year Member



I've been thinking, maybe I should use robots.txt to disallow indexing of .net and .org domains?

jdMorgan

9:20 pm on Aug 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> 3. .htaccess doesn't seem to be allowed or is overwritten by something the hosts are doing.

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

Pico_Train

7:34 am on Aug 14, 2007 (gmt 0)

10+ Year Member



Support got back to me, they are parked domains pointing to example.ca.

Control does not cater to doing 301s in it as per other consoles.

.htaccess is in the .net and .org folders as you say.

Will ask support to see what they can do.

Thanks for your help!