流量变现70%分成 全国楼凤小姐姐 招商联系客服 招商联系客服 招商联系客服 招商联系客服

飞飞CMS设置lnmp伪静态规则

[复制链接]
查看218 | 回复0 | 2024-8-14 15:39:09 | 显示全部楼层 |阅读模式

后台直接开启伪静态,其他的都默认

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
location / {
rewrite ^/Tpl/(.*)/Home/(.*)$ / last;
rewrite ^/vod/([0-9]+).html$ /index.php?s=/Home-vod-read-id-$1;
rewrite ^/vod/([0-9]+)-([0-9]+).html$ /index.php?s=/Home-vod-show-id-$1-p-$2;
rewrite ^/vod(w+)/([0-9]+)-([0-9]+).html$ /index.php?s=/Home-vod-show-order-$1-id-$2-p-$3;
rewrite ^/vod/([0-9]+)-([0-9]+)-([0-9]+).html$ /index.php?s=/Home-vod-play-id-$1-sid-$2-pid-$3;
rewrite ^/search/(.*)-([0-9]+).html$ /index.php?s=/Home-vod-search-wd-$1-p-$2;
rewrite ^/search/(.*).html$ /index.php?s=/Home-vod-search-wd-$1;
rewrite ^/tag/(.*)-([0-9]+).html$ /index.php?s=/Home-tag-show-wd-$1-p-$2;
rewrite ^/detail/(.*).html$ /index.php?s=/Home-my-show-id-$1;
rewrite ^/guestbook/([0-9]+).html$ /index.php?s=/Home-gb-show-p-$1;
rewrite ^/vod-(.*)$ /index.php?s=/Home-vod-$1 last;
rewrite ^/news-(.*)$ /index.php?s=/Home-news-$1 last;
rewrite ^/special-(.*)$ /index.php?s=/Home-special-$1 last;
rewrite ^/tag-(.*)$ /index.php?s=/Home-tag-$1 last;
rewrite ^/gb-(.*)$ /index.php?s=/Home-gb-$1 last;
rewrite ^/cm-(.*)$ /index.php?s=/Home-cm-$1 last;
rewrite ^/map-(.*)$ /index.php?s=/Home-map-$1 last;
rewrite ^/my-(.*)$ /index.php?s=/Home-my-$1 last;           
}

lnmp下 把上面的规则保存成 feifei.conf  规则文件上传到 /usr/local/nginx/conf/ 下面
记得每个网站配置文件里面加个 include feifei.conf;  
最后重启nginx    /etc/init.d/nginx restart 重启生效。
测试成功的哥们记得顶下!



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则