首页 > ButCMS专栏 > ButCMS伪静态规则

ButCMS伪静态规则

ButCMS专栏
2020
07/28
12:14

#ButCMS标准版伪静态规则

#首页
rewrite ^/index.html$ /index.php;

#频道页
rewrite ^/([a-z]+)(-([0-9]+))?.html$ /channel.php?channel=$1&page=$3;

#栏目标准列表页
rewrite ^((/[0-9a-z]+)+)(\/(index(-([0-9]+))?.html)?)?$ /list.php?path=$1&ename=$2&page=$6;

#内容详情页
rewrite ^((/[0-9a-z]+)*)\/([0-9]+).html$ /detail.php?path=$1&id=$3;

#搜索
rewrite ^/s-(.+)\/([0-9]+).html$ /search.php?key=$1&page=$2;

 


 

#ButCMS定制版伪静态规则

#首页与频道页
rewrite ^/([a-z]+)(-([0-9]+))?.html$ /$1.php?page=$3;

#栏目标准列表页
rewrite ^((/[0-9a-z]+)+)(\/(index(-([0-9]+))?.html)?)?$ /list.php?path=$1&ename=$2&page=$6;

#内容详情页
rewrite ^((/[0-9a-z]+)*)\/([0-9]+).html$ /detail.php?path=$1&id=$3;

#搜索
rewrite ^/s-(.+)\/([0-9]+).html$ /search.php?key=$1&page=$2;

声明:《ButCMS伪静态规则》一文由花火盒(http://www.huahuohe.com)网友供稿,版权归原作者本人所有,转载请注明出处。如果您对文章有异议,可发邮件到hi@webimage.cn处理!
相关文章