| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
I'm trying to set up a global 301 redirect for a site that has moved to a new domain and I'm having some trouble with syntax.
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...]
Rock and Roll Gorufu. Thanks works like a charm.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved