Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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$

Any ideas why this is happening?

share|improve this question

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

Redirect permanent /filename.html

Remember that Redirect works on URLs, not paths.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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