blog子目录伪静态测试演示,其他子目录修改blog名称为你的子目录名称
location /blog/ {
location ~ \.(zip|rar|7z|gz|ini|htm)$ {deny all;}
location ~ /(view|lecms|admin)/.*\.(htm|ini)?$ {deny all;}
location ~ ^/(static|log|cache|upload)/.*.(php|php3|php4|php5|cgi|asp|aspx|jsp|shtml|shtm|pl|cfm|sql|mdb|dll|exe|com|inc|sh)$ {deny all;}
if (!-e $request_filename) {
rewrite ^/blog/(.+) /blog/index.php?rewrite=$1 last;
}
}
location / {
location ~ \.(zip|rar|7z|gz|ini|htm)$ {deny all;}
location ~ /(view|lecms|admin)/.*\.(htm|ini)?$ {deny all;}
location ~ ^/(static|log|cache|upload)/.*.(php|php3|php4|php5|cgi|asp|aspx|jsp|shtml|shtm|pl|cfm|sql|mdb|dll|exe|com|inc|sh)$ {deny all;}
if (!-e $request_filename) {
rewrite ^/(.+) /index.php?rewrite=$1 last;
}
}
转载请注明:本文《LECMS安装在二级目录,伪静态规则如何设置?》链接: http://seo.leidu.net/post-473.html
百度已收录
发表评论: