I am sure this is pretty simple, but i just cant find the right code for it.
I need to redirect everything, old domain, with and without www all sub pages.any random link that may be out there to www.newdomain.com
Here is mine at the moment, and it redirects well, exceprt for one thing www.old-doamin.com/old-page - redirects to www.newdomain.com/old-page
When it should be going to the home page of the new page.
thank you for the help.
RewriteCond %{HTTP_HOST} ^old-domain.com/$
RewriteRule (.*) http://www.old-domain.com/$1 [R=301,L]
RedirectMatch 301 ^/(.*)http://www.newdomain.com/$1