[英]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 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 www.example.com/test/quick-brown-fox-jumps-over-the--lazy-dog/2890
using URL Rewrite regular expression 使用URL重写正则表达式
please help 请帮忙
Try this: 尝试这个:
RewriteEngine On
RewriteRule /test/(.+)/(.+) /test.aspx?n=$1-$2 [QSA]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.