织梦cms伪静态设置(经过二次开发)
织梦cms伪静态设置(经过二次开发)
location / {
#PC版伪静态规则
rewrite ^/$ /plus/rewrite.php?s=$1 last;
rewrite ^/index\.html$ /plus/rewrite.php?s=$1 last;
#地图伪静态规则开始
rewrite ^/sitemap.xml$ /sitemap.php last;
rewrite ^/sitemap_([0-9]+).xml$ /sitemap_$1.php last;
rewrite ^/sitemap.txt$ /sitemap.php last;
rewrite ^/sitemap_([0-9]+).txt$ /sitemap_$1.php last;
rewrite ^/360.txt$ /360.php last;
rewrite ^/360_([0-9]+).txt$ /360_$1.php last;
rewrite ^/google.xml$ /google.php last;
rewrite ^/google_([0-9]+).xml$ /google_$1.php last;
rewrite ^/baidumap.xml$ /baidumap.php last;
rewrite ^/baidumap_([0-9]+).xml$ /baidumap_$1.php last;
#地图伪静态规则end
if (!-e $request_filename) {
rewrite ^/(.*)$ /plus/rewrite.php?s=$1 last;
rewrite ^(.*)$ /plus/rewrite.php?s=$1 last;
}
}
赞 (0)