| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
| 7:51 pm on Nov 2, 2001 (gmt 0)|
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
| 11:13 pm on Nov 2, 2001 (gmt 0)|
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...]
| 11:17 pm on Nov 2, 2001 (gmt 0)|
Rock and Roll Gorufu. Thanks works like a charm.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2013 all rights reserved