简体   繁体   中英

Url Rewrite - regular Expression in IIS

i have a url
www.example.com/test.aspx?n=quick-brown-fox-jumps-over-the--lazy-dog-2890

i want to display it as
www.example.com/test/quick-brown-fox-jumps-over-the--lazy-dog/2890

using URL Rewrite regular expression

please help

Try this:

RewriteEngine On
RewriteRule /test/(.+)/(.+) /test.aspx?n=$1-$2 [QSA] 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM