Need help with rewrite rule
Hello,I am trying to use an .htaccess apache rewrite rule to redirect all traffic to the "www.domain.com" and "domain.com" hostname to "www.newdomain.com".
I have this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com [NC,OR]
RewriteCond %{REMOTE_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/moved.html [L,R=301]
But it is not working correctly...
Any ideas?