I am trying to write a URL rewriter rule in IIS7.
My current reg expression is ^(policy|pricing|contact|gallery)/(.*)
My Rewrite rule is: /{R:1}.aspx?cat={R:2}
policy/ (Keep Slash in this case, WORKS)
gallery/soccer (No slash provided so this WORKS)
gallery/soccer/ (needs to remove last slash)
gallery/soccer/girls/ (needs to remove last slash)
Any ideas would be great, I know how I would approach this in languages like .Net, but I need to strictly do this as a regular expression rule in IIS.