首页 > 五指CMS > 正文

五指cms伪静态规则
2014-12-08 17:16:17   来源:   评论:0 点击:

Apache规则:<IfModule mod_rewrite c> RewriteEngine On RewriteCond %{QUERY_STRING} ^( *)$ RewriteRule ^( *) list-([0-9]+)-([0-9]+) html$ $1 index php?v=listing&cid=$2&pa

Apache规则:
 

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.html$ $1/index.php?v=listing&cid=$2&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/item-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/index.php?v=show&cid=$2&id=$3&page=$3&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)/show-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/index.php?v=show&cid=$2&id=$3&page=$3&%1
</IfModule>


Nginx规则:

location / {

rewrite ^(.*)show-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/index.php?v=show&cid=$2&id=$3&page=$4;
rewrite ^(.*)item-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/index.php?v=show&cid=$2&id=$3&page=$4;
rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/index.php?v=listing&cid=$2&page=$3;
}

 

相关热词搜索:五指 静态 规则

上一篇:phpcms升级到五指cms
下一篇:最后一页

分享到: 收藏