404 日 , 2021 12:30:14
PHPCMS伪静态

PHPCMS伪静态的方法,如果使用宝塔或PHP Study,将以下代码复制到伪静态设置中即可。

location / {
  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;
}
暂无评论

发送评论 编辑评论