Redirecting old sites to new site with htaccess
I have what I believe is an odd question.

I've designed a new website for a client, and he wants 3 old sites hosted somewhere else to point to his new site.

What his hosting company have done is to change the A records for each of the 3 old sites to point to the IP address of the new site.

They are suggesting that I can have the 3 old url's resolve to the new site by modifying the htaccess file on the new site...

...but I haven't a clue how this would work. I've tried using a 301 redirect (code below) but it doesn't seem to work.

Can anyone help please?

Code I've tried:

Options +FollowSymlinks -MultiViews
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www\.OldSite1\.co.uk$ [NC]
RewriteRule ^(.*)$ http://NewSiteURL.co.uk/$1 [R=301,L]

Thanks!
Redirecting old sites to new site with htaccess
===

I have what I believe is an odd question.

I've designed a new website for a client, and he wants 3 old sites hosted somewhere else to point to his new site.

What his hosting company have done is to change the A records for each of the 3 old sites to point to the IP address of the new site.

They are suggesting that I can have the 3 old url's resolve to the new site by modifying the htaccess file on the new site...

...but I haven't a clue how this would work. I've tried using a 301 redirect (code below) but it doesn't seem to work.

Can anyone help please?

Code I've tried:

Options +FollowSymlinks -MultiViews
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www\.OldSite1\.co.uk$ [NC]
RewriteRule ^(.*)$ http://NewSiteURL.co.uk/$1 [R=301,L]

Thanks!