决WordPress修改固定链接后Nginx报404

nginx.conf 里添加如下内容:[icon name=”wpforms” class=”” unprefixed_class=””]

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;
        }
}

加班不给钱