飞飞CMS官方论坛
标题:
飞飞CMS静态配置与nginx规则
[打印本页]
作者:
垃圾站长
时间:
2014-8-26 20:05
标题:
飞飞CMS静态配置与nginx规则
官方出品模板
1-130R223434U56.jpg
(36.41 KB, 下载次数: 689)
下载附件
2014-8-26 20:04 上传
nginx规则如下,仅供参考,请灵活使用后台的自定义伪静态的附加参数,如果有使用附加参数就一定要在规则里面做对应的rewrite
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;
作者:
tdqxxb6v
时间:
2015-1-13 19:00
楼主辛苦了,非常感谢!
全球高清电视棒 2rf2v.012q.cn 谁喝过汤是真的吗 vk23.cn
欢迎光临 飞飞CMS官方论坛 (http://feifeicms.me/)
Powered by Discuz! X3.2