IIS 伪静态规则怎么写?
IIS 伪静态规则怎么写?
我的路径,是index.asp ,about.asp, about.asp?id=12, about.asp?id=13 ,about.asp?id=14,,,news.asp,,,product.asp, 连接如,showproduct.asp?id=12,,,shownews.asp?id=13,,,,这样的伪规则应该怎么写啊?
还有页面翻页怎么办?
------解决方案--------------------
给一个例子,其它对照着写
RewriteRule (.*)/about-([0-9]*).html $1/about.asp?id=$2
------解决方案--------------------
一类一类的写
about_12.html
^about_(\d+)$ about.asp?id=$1
shownews_12_1.html --------- 12是id 1是page
^shownews_(\d+)_(\d+)$ shownews.asp?id=$1&page=$2