andywozhere
Member
A client is changing their domain name due to rebranding. I'm figuring I just need to pop some code in the .ht access file and hey presto robots will find us at the new site, right? Or am I missing something?
Here's the code I'm thinking of using:
I know I could use Google Webmaster to redirect robots to the new URL... but it has never been set up for the old site and I don't figure there would be too much point as the move is tomorrow.
Here's the code I'm thinking of using:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)theoldsite.com[NC]
RewriteRule ^(.*)$ http://thenewsite.com/$1 [R=301,L]
I know I could use Google Webmaster to redirect robots to the new URL... but it has never been set up for the old site and I don't figure there would be too much point as the move is tomorrow.