phpcms v9的url优化

nginx配置重定向

# nginx rewrite rule
rewrite ^/show-(.+)-(.+)-(.+).html$ /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/list-(.+)-(.+).html$ /index.php?m=content&c=index&a=lists&catid=$1&page=$2 last;
# end nginx rewrite rule

 

posted @ 2016-02-26 14:54  zenghansen  阅读(529)  评论(0编辑  收藏  举报