wordpress 分类目录404
环境: phpstudy nginx wnmp worderpress 5.8
原因:
Nginx 只接收index.php 而其它目录并不会往wordpress 转发
解决办法:
方式一: 站点使用参数化方式传递
方式二:修改nginx 的rewrite配置
if (!-f $request_filename){ rewrite (.*) /index.php; }
环境: phpstudy nginx wnmp worderpress 5.8
原因:
Nginx 只接收index.php 而其它目录并不会往wordpress 转发
解决办法:
方式一: 站点使用参数化方式传递
方式二:修改nginx 的rewrite配置
if (!-f $request_filename){ rewrite (.*) /index.php; }