The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] .htaccess mod_rewrite Re: [Solved] .htaccess mod_rewrite


What’s happening is /about/x.shtml matches with /our-school/about/x.html because it appears in the url (albeit at the end). This results in an infinite loop (or it would if apache didn’t limit the number of redirects allowed).

To restrict your pattern to the beginning of the url you use the beginning-of-line anchor (^). See if the following works:

RedirectMatch 301 ^/about/(.*).shtml$1.shtml