I have created 2 url rewrite rules in my web.config that look like the following:
rewrite url="~/Products/(.+).aspx" to="~/Products.aspx?Cat=$1"
rewrite url="~/Products/(.+)/(.+).aspx" to="~/Products.aspx?Cat=$1&SubCat=$2"
If i type in Products/xyz.aspx it works perfectly but if i try a url that implements the second rule like Products/xyx/abc.aspx it passes both xyz and abc to the Cat and not the SubCat. Any ideas how i can get it to handle both?