我正在使用wordpress最新版本。
目前我的博客设置为自定义永久链接/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页,网址正常工作。
答案 0 :(得分:0)
我认为不需要使用index.php来查看登录页面。
http://abc.com/blog/
以上网址足以查看着陆页
http://abc.com/blog/index.php
我正在访问上面的url.i上面看到
sorry, we couldn't find that page
Please try using the search above or follow one of the links below.
如此正确的规则将index.php视为页面。
然后我在网址登录页面看不到任何分页。
由于
答案 1 :(得分:0)
很容易修复。
只需加一条线 wp-includes / formatting.php中的clean_url()函数:
$url = str_replace('index.php/Index.php','index.php',$url);
在任何“if Statements”
之前,只在函数开头给出这一行