Blogger Information
Blog 12
fans 0
comment 0
visits 27320
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
phpcms设置伪静态Ngixn
小生我怕怕啊的博客
original
1678 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

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

如有疑问可以留言提问!


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 [email protected] Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!