wordpress分页错误?

wordpress分页错误?,wordpress,paging,Wordpress,Paging,我正在使用wordpress的最新版本 目前我的博客被设置为自定义permalink/index.php/%postname%/ http://abc.com/blog/index.php 工作正常 但当点击下一步按钮转到第2页时,它失败了 它应该去http://abc.com/blog/index.php/page/2/ 但是它去了http://abc.com/blog/index.php/Index.php/page/2/ 正在添加额外的/Index.php/ 这种情况只发生在第2页。 在第

我正在使用wordpress的最新版本

目前我的博客被设置为自定义permalink/index.php/%postname%/

http://abc.com/blog/index.php 工作正常

但当点击下一步按钮转到第2页时,它失败了

它应该去http://abc.com/blog/index.php/page/2/

但是它去了http://abc.com/blog/index.php/Index.php/page/2/

正在添加额外的/Index.php/

这种情况只发生在第2页。
在第2页转到第3页,url工作正常。

我认为没有必要使用index.php查看登录页

http://abc.com/blog/
上面的url足以看到登录页

http://abc.com/blog/index.php
当我访问上面的url时。我刚刚看到

sorry, we couldn't find that page

Please try using the search above or follow one of the links below.
所以重写规则将index.php视为页面

然后我在url登录页中看不到任何分页

http://abc.com/blog/

谢谢

这很容易修复

只要在你的电话里打个电话就行了 wp includes/formatting.php中的clean_url函数:

$url = str_replace('index.php/Index.php','index.php',$url);
只需在函数开头的任何if语句之前给出这一行