I need a regular expression for the ASP.NET url rewriting module that will fulfill the following test cases?
products/ products.aspx?Atts=&Page=
products/att1/ products.aspx?Atts=att1/&Page=
products/att1/att2/ products.aspx?Atts=att1/att2/&Page=
products/2/ products.aspx?Atts=&Page=2
products/att1/2/ products.aspx?Atts=att1/&Page=2
products/att1/att2/2/ products.aspx?Atts=att1/att2/&Page=2
Can anyone help?
I managed to fudge this with two rules. Not as pretty as I might like but what can you do?
Closest I came with a single rule was:
I’d still be interested in seeing this done in a single rule if anyone’s feeling brave…