I need to update one of the sections on my site to go from /current-directory/ to /new-directory/ but keep all of the file names the same. Making this update couldn’t be easier through the EE admin, but I need to setup a RedirectMatch rule to deal with 301 redirecting all of the old URLs.
Under normal circumstances this should work as a rule in my .htaccess file:
RedirectMatch 301 ^/current-directory/(.*) (mysitehere)/new-directory/$1Except it doesn’t. I’m getting some extra parameter added on to the end of the URL, so that it comes out as:
(mysitehere)/new-directory/correct-page[b]?/current-directory/correct-page[/b]I don’t know where the question mark and everything after it is coming from. I’m thinking it might be something that’s suppressed by EE or another rewriterule associated with EE, but I can’t tell.
Any help would be appreciated. Thanks!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.