I have done a 301 redirect from one subdomain to another (www.domain.com to www2.domain.com) The problem I have is that the individual pages of the old subdomain are all redirected to the homepage of the new subdomain (www.domain.com/page1.php goes to www2.subdomain.com) My question is can I redirect www.domain.com/page1.php to www2.domain.com/page1.php and how do I do that? I'm very new at this so if anyone could help me I would really appreciate it. Thanks!
thanks right now I have RewriteBase / RewriteRule ^page1.php$ http://www2.subdomain.com/page1.php [R=301,L] Is this correct? it doesn't seem to do anything
If I'm reading you right, clay15, you want to redirect any page on 1 domain to the same page on another domain ? If that is what you're after, you can use RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.domain1\.com$ RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301] Code (markup):