CodePlexProject Hosting for Open Source Software
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]
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.
Can I get a quick working example?
Yes, you can very quickly get one in the documentation.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.