Rewriting with question mark

Mar 2, 2010 at 2:45 PM
Edited Mar 2, 2010 at 2:52 PM

I am having an issue with a redirection based on a question mark.


I want to redirect /settings.aspx?PageID=Spam to

I have the following rule but it fails

RedirectRule /Settings.aspx?PageID=Spam [I]

Mar 2, 2010 at 3:09 PM

Question-mark is meaningful in regexp.

It does not match itself.

you need to precede it with a slash to "quote" it.

When in doubt, Check the documentation, it has lots of appropriate examples of this.


Mar 2, 2010 at 3:16 PM

Can I get a quick working example?

Mar 2, 2010 at 3:32 PM

Yes, you can very quickly get one in the documentation.