Forum Moderators: phranque
I'd like to any request for any page on the old domain to redirect to a "this site has moved" page. ie: anything at domainA.com and it's subdirectories will redirect to domainA.com/moved.htm
RedirectMatch uses regular expressions
RedirectMatch regex Full-URL
produces a 302 error
RedirectMatch permanent regex Full-URL
produces a 301 error
RedirectMatch gone regex
produces a 410 error
The following line should work. It worked for me.
RedirectMatch permanent (.*) [domainA.com...]