Blogger Information
Blog 12
fans 0
comment 0
visits 27686
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
phpcms设置伪静态Ngixn
小生我怕怕啊的博客
Original
1704 people have browsed it

1:先在栏目中设置伪静态规则

Snipaste_2021-02-16_13-00-54.png

2:设置伪静态的规则

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;
 
}

3:重启服务器环境

    重启环境一下!

4:在发布设置中,把红色框框的都要更新下

Snipaste_2021-02-16_13-09-28.png

到此基本结束了,如果不生效,可以清理一下浏览器的缓存看看!

如有疑问可以留言提问!


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post