wordpress修改固定链接后404

修改Nginx配置文件,启用rewrite: 1、vi /usr/local/nginx/conf/nginx.conf 2、在server里添加 if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f...

typecho伪静态404 rewrite

LNMP 1.nginx配置文件    vi /usr/local/nginx/conf/nginx.conf   2.搜索 enable-php.conf ,命令模式输入 enable-php.conf i插入模式,修改enable-php.conf 为enable-php-pathinfo.conf   3、在server{}模块内加入"typecho.conf"   4、rewrite i...

Top