来分享几条dedecms手机端m的伪静态
nginx:
rewrite ^/m/list-([0-9]+)-([0-9]+)-([0-9]+).html$ /m/list.php?tid=$1&totalresult=$2&PageNo=$3 last;
rewrite ^/m/list-([0-9]+).html$ /m/list.php?tid=$1 last;
rewrite ^/m/detail-([0-9]+).html$ /m/view.php?aid=$1 last;
iis的:
<rule name="手机栏目" stopProcessing="true">
<match url="^m/list-([0-9]*)-([0-9]*)-([0-9]*).html$" />
<action type="Rewrite" url="/m/list.php?tid={R:1}&TotalResult={R:2}&PageNo={R:3}" />
</rule>
<rule name="手机栏目首页" stopProcessing="true">
<match url="^m/list-([0-9]*).html$" />
<action type="Rewrite" url="/m/list.php?tid={R:1}" />
</rule>
<rule name="手机内容页" stopProcessing="true">
<match url="^m/detail-([0-9]*).html$" />
<action type="Rewrite" url="/m/view.php?aid={R:1}" />
</rule>