.htaccess文件存在问题。
解决方法:
更新到最新的WordPress。在某些安装中存在永久链接错误。
确保为ModRewrite正确配置了Apache。
从支持部门:“选项”>“永久链接”上的“可选”部分。它不是可选的。升级后针对类别的index.php / file(我拥有PATHINFO永久链接)提到了它,我不想要“文件”,所以我将其更改为index.php /现在,我将其更改为index.php / _ /(或将其保留为空白,以提供标准的“ Category”子路径),然后所有这些都可以再次使用。这是Mod Rewrite文件:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)