level 1
WordPress自带分页第二页显示404,我弄了一个分类目录,里面有一个列表,目前只有6篇文章,我想看看分页效果,所以在后台-设置-阅读-最多博客显示数改为了1,相应的,前段列表处显示了分页按钮,但是点击第二页,第三页…都是404,请问吧里大神,这是什么问题,如何解决!!跪谢了!!
2015年05月19日 14点05分
1
level 1
估计是伪静态的问题,如果是nginx的话,可以参考下dadajun.com最近一篇文章看看
2015年05月20日 02点05分
5
level 1
我后台的固定连接设置是这样的:/%category%/%postname%/
2015年05月20日 08点05分
6
level 1
好吧,我解决了,修改方式是把……
/%category%/%postname%/
改成
/%category%/%postname%.php
或者
/%category%/%postname%.html
2015年05月20日 08点05分
7
level 1
路径错误修改方法修改wordpress\wp-includes\classe-wp.php这个文件在这个文件中找到function handle_404()这个函数,源代码如下:function handle_404() {global $wp_query;// If we’ve already issued a 404, bail.if ( is_404() )return;// Never 404 for the admin, robots, or if we found posts.if ( is_admin() || is_robots() || $wp_query->posts ) {status_header( 200 );return;}// We will 404 for paged queries, as no posts were found.if ( ! is_paged() ) {// Don’t 404 for these queries if they matched an object.if ( ( is_tag() || is_category() || is_tax() || is_author() || is_post_type_archive() ) && $wp_query->get_queried_object() ) {status_header( 200 );return;}// Don’t 404 for these queries either.if ( is_home() || is_search() ) {status_header( 200 );return;}}// Guess it’s time to 404.$wp_query->set_404();status_header( 404 );nocache_headers();}把这段代码替换为:function handle_404() {global $wp_query;if ( !is_admin() && ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) {// Don’t 404 for these queries if they matched an object.if ( ( is_tag() || is_category() || is_tax() || is_author() ) && $wp_query->get_queried_object() ) {if ( !is_404() )status_header( 200 );return;}$wp_query->set_404();status_header( 404 );nocache_headers();} elseif ( !is_404() ) {status_header( 200 );}}
2017年03月22日 06点03分
9
level 1
解决了,
修改方式是把……
/%category%/%postname%/
改成
/%category%/%postname%.php
或者
/%category%/%postname%.html
正解
2021年01月20日 05点01分
12
G固定链接那里改?我改了还是不行
2021年01月20日 17点01分