dedecms织梦手机端伪静态

来分享几条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}&amp;TotalResult={R:2}&amp;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>

dedecms织梦手机端伪静态

上一篇:【Java】数组拷贝的几种方法及效率比较


下一篇:数据结构与算法——初谈递归