Rewriting with question mark

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

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

 

I want to redirect /settings.aspx?PageID=Spam to https://www.site.com/console/

I have the following rule but it fails

RedirectRule /Settings.aspx?PageID=Spam https://www.site.com/console/ [I]

Coordinator
Mar 2, 2010 at 4: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 4:16 PM

Can I get a quick working example?

Coordinator
Mar 2, 2010 at 4:32 PM

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

http://cheeso.members.winisp.net/Iirf20Help/frames.htm