Php 类别页面中找不到404页面的问题

Php 类别页面中找不到404页面的问题,php,wordpress,.htaccess,permalinks,Php,Wordpress,.htaccess,Permalinks,我用Wordpress建立了一个网站/博客 在设置下,我使用了一个“自定义结构”: 和我的.htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

我用Wordpress建立了一个网站/博客

在设置下,我使用了一个“自定义结构”:

和我的
.htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]

什么有效:

  • 单柱
  • 页数
  • 类别(例如
    http://mywebsite.com/blog
什么不起作用:

  • 类别子页(例如
    http://mywebsite.com/blog/page/2
    -单击“旧帖子”链接时)


发生什么事了?是否有其他方法(除了上面的…pretty permalink,访问某些类别下的子页面-例如,通过类别ID等?

Wordpress在类别博客中搜索带有slug页面的帖子,但找不到它并返回404

只有一种解决方法-手动创建重写规则,这样它就可以按预期工作

有关更多信息,请参阅并查找“分页导航不起作用”

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>