打印

[更正]LNMP一键安装包0.3中wordpress Rewrite(伪静态规则)

[更正]LNMP一键安装包0.3中wordpress Rewrite(伪静态规则)

由于失误,lnmp一键安装包中的wordpress.conf这个文件是wordress的URL Rewrite,本身存在一些问题,如archive中,日期归档是打不开的。

正确写法如下:

location / {
if (-f $request_filename/index.html){
                rewrite (.*) $1/index.html break;
        }
if (-f $request_filename/index.php){
                rewrite (.*) $1/index.php;
        }
if (!-f $request_filename){
                rewrite (.*) /index.php;
        }
}

感谢各位LNMP使用者对lnmp的支持。
Licess,专于VPS,精于VPS美国VPS推荐
代购VPS、域名、服务器,代维 QQ:503228080 旺旺:lzhenbao
淘宝网店:http://shop63846532.taobao.com/ 拍拍店:http://503228080.paipai.com/
本联系方式仅提供代购及相关付费服务,lnmp相关问题请直接发帖。

TOP