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 want to redirect the following url


I have the following rules

RewriteCond %{QUERY_STRING} ^Page=(.*)$
RewriteRule ^index.htm$ [R=301,NC,L]

But it redirects to

There are a lot of references about a long standing bug with double escaping that was recently fixed (2.2.12 I think) and as I am running 2.2.9 I thought the RewriteRule B flag may help, but it makes it worse...

Any ideas from the Apache gurus?

share|improve this question
up vote 2 down vote accepted

Its the NE (No Escape) flag that I need

RewriteCond %{QUERY_STRING} ^Page=(.*)$
RewriteRule ^index.htm$ [R=301,NC,L,NE]
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.