Total Noob
Banned - By Request
- May 10, 2009
- 2,446
- 2,732
I'm trying to 301 an old domain to a new domain.
This is the code I'm putting in .htaccess:
However, that is only redirecting http://domain.com to the new domain, not any subpages like http://domain.com/contact.php. Google is still indexing http://domain.com/anysubpage.php.
Any ideas as to why this is happening?
Thanks,
Jared
This is the code I'm putting in .htaccess:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://newdomain.com/$1 [R=301,L]
However, that is only redirecting http://domain.com to the new domain, not any subpages like http://domain.com/contact.php. Google is still indexing http://domain.com/anysubpage.php.
Any ideas as to why this is happening?
Thanks,
Jared