URLRewriter.net with multiple querystring separated by /

Posted by Andreas Strandfelt on Stack Overflow See other posts from Stack Overflow or by Andreas Strandfelt
Published on 2010-04-29T22:01:21Z Indexed on 2010/04/29 22:07 UTC
Read the original article Hit count: 331

I have been looking around the site a bit, but I didn't find any replies on how to do it the way I want.

What I want is an URL like this:

www.example.com/Projects/"querystring1 - text only"/"querystring2 - 4 digits only"/

to show the page with this URL:

www.example.com/Projects.aspx?Region=querystring1&Zip=querystring2

What I have been trying is the following:

<rewrite url="~/Leje-og-udlejning-arbejdskraft/(.+)/(.+)" to="~/Workers.aspx?Region=$1&amp;zip=$2"/>

But it just takes both of them as one querysting and put them in the Region-querystring.

© Stack Overflow or respective owner

Related posts about urlrewriter.net

Related posts about url-rewriting