Forum Moderators: phranque
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com [NC]
RewriteRule ^(.*)$ [newdomain.com...] [R=301,L]
though a couple of problems:
1) If "www" is not typed, I don't get the redirection (ie: [olddomain.com...]
2) Even if I type the old domain corrrectly (ie: (http://www.olddomain.com/apage.com), all I get now is actually a redirect to a 404 page not found error.
Any help would be great. Thanks,
RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com [NC]
Jim