asp.net - ReWrite rule for IIS 7+ -


i have site generates following url structure rewrite.

current url

domain.com/store/catid/20/prodid/50/pair-of-socks.aspx 

desired url

domain.com/pair-of-socks.aspx 

it depends on how many edge cases need cater for. simple solution be:

match url (\w+/)+(\w+.\w{3,4}) rewrite url {r:2}


Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -