he911450 发表于 2024-9-18 18:49:18

Nginx伪静态规则专题不能分页

Nginx伪静态规则专题不能分页问题解决办法

试试这个 路径名称请对照修改:
rewrite ^/xxx\.html$ xxx.php permanent;
location / {
rewrite ^/frim/index(.+?)\.html$ /list/index.php?$1 last;
rewrite ^/movie/index(.+?)\.html$ /detail/index.php?$1 last;
rewrite ^/play/(+)-(+)-(+)\.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;
}
页: [1]
查看完整版本: Nginx伪静态规则专题不能分页