首页 > 技术文章 > ctcms Nginx 伪静态

caobiin 2017-07-21 10:15 原文

location /whole {
rewrite ^/whole/(.+).html$ /index.php?c=whole&key=$1;
}
location /show {
rewrite ^/show/(\d+).html$ /index.php?c=show&id=$1;
}
location /play {
rewrite ^/play/(\d+)~(\d+)~(\d+).html$ /index.php?c=play&id=$1&zu=$2&ji=$3;
rewrite ^/play/(\d+).html$ /index.php?c=play&id=$1;
}
location /list {
rewrite ^/list/(\d+)~(\d+).html$ /index.php?c=lists&id=$1&page=$2;
}

推荐阅读