Regex issue in rewriter config

Posted by sgbinks on Stack Overflow See other posts from Stack Overflow or by sgbinks
Published on 2010-05-25T03:32:52Z Indexed on 2010/05/25 11:21 UTC
Read the original article Hit count: 133

Filed under:
|
|

I'm having an issue with bad requests from certain search parameters.

An example URL:

http://www.foo.com/washington/forums/search/%26

Results in a bad request.

The rewriter config line looks like this:

<rewrite url="^(.*)/forums/search/(.*)" to="~/Pages/Forums/Overview.aspx?Address=$1&amp;q=$2" processing="stop" />

I'm thinking it's an issue with the Regex...?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about .NET

Related posts about regex