Lumanager设置WordPress站点的固定链接格式解析
- Debug
- 2013-07-08
- 69热度
- 0评论
刚将博客搬了家,发现原来的固定链接格式访问不到了 于是去查找关于固定链接解析的问题 发现如下代码,加载到站点的location规则中即可[code] location / { index index.html index.php; if (-d $request_filename){ rewrite ^/(.*)([^/])$ $1$2/ permanent; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } [/code] 一定要重启Lumanger操作系统
