首页>文档>海洋CMS>Nginx伪静态规则

Nginx伪静态规则

Nginx伪静态规则:

location / {
    rewrite ^/frim/index(.+?)\.html$ /list/index.php?$1 last;
    rewrite ^/movie/index(.+?)\.html$ /detail/index.php?$1 last;
    rewrite ^/play/([0-9]+)-([0-9]+)-([0-9]+)\.html$ /video/index.php?$1-$2-$3 last;
    rewrite ^/topic/index(.+?)\.html$ /topic/index.php?$1 last;
    rewrite ^/topic/index\.html$ /topic/index.php?$1 last;
    rewrite ^/topiclist/(.+?).html$ /topiclist/index.php?$1 last;
    rewrite ^/index\.html$ index.php permanent;
    rewrite ^/news/index\.html$ /news/index.php?$1 last;
    rewrite ^/html/part/index(.+?)\.html$ /articlelist/index.php?$1 last;
    rewrite ^/html/article/index(.+?)\.html$ /article/index.php?$1 last;
}
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索