PHPCMS技巧

当前位置/ 首页/ V9教程/PHPCMS技巧/ 正文

phpcms v9伪静态规则nginx配置伪静态 404 Not Found

location / {
###以下为PHPCMS 伪静态化rewrite法则
rewrite ^/(.*)content-([0-9]+)-([0-9]+)-([0-9]+)\.html  /index.php?m=content&c=index&a=show&catid=$2&id=$3&page=$4;
rewrite ^/(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html  /index.php?m=content&c=index&a=show&catid=$2&id=$3&page=$4;
rewrite ^/(.*)list-([0-9]+)-([0-9]+).html  /index.php?m=content&c=index&a=lists&catid=$2&page=$3;
}
 

以上可以正常使用!