官方出品模板
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;
飞飞cms官方论坛-www.feifeicms.vip |
该贴共收到 2 条回复