I've got some RedirectMatch statements to redirect old urls to the new documents, but for some reason they're working properly, except that it's appending the initial request url as a query string. Eg. Requesting


redirects to


The corresponding rule would be:

RedirectMatch 301 ^/filename.html$ http://www.domain.com/new_filename.html

Any ideas why this is happening?

1 Answer 1


Your example doesn't require RedirectMatch; use a simple Redirect:

Redirect permanent /filename.html http://www.domain.com/new_filename.mhtml

Remember that Redirect works on URLs, not paths.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.