如何解决由于WordPress评论kindle翻页错误造成404错

1、Apache作为服务器的话
修改httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
查找并替换
AllowOverride none -& AllowOverride All
2、nginx作为服务器的话,添加三条if语句。
location ~ \.php$ {
fastcgi_pass
127.0.0.1:9000;
fastcgi_index
fastcgi_param
SCRIPT_FILENAME
$document_root$fastcgi_script_
if (-f $request_filename/index.html){
rewrite (.*) $1/index.
if (-f $request_filename/index.php){
rewrite (.*) $1/index.
if (!-f $request_filename){
rewrite (.*) /index.
快快乐乐的北斗
浏览: 60874 次
来自: 北京
yuicompressor scss/base.css -o
导出SELECT id,code,fromUserName,u ...
可以给tomcat配置虚拟路径,就可以将图片保存到tomcat ...
写道不行啊 没任何效果js css 成功导 ...
sdylag 写道试过了,不好用导入jquery文件了么
(window.slotbydup=window.slotbydup || []).push({
id: '4773203',
container: s,
size: '200,200',
display: 'inlay-fix'Wordpress分类,标签,分页显示及翻页出现404错误的解决方法
互联网 & 12-31 10:42:58 & 作者:佚名 &
这篇文章主要为大家介绍了Wordpress分类,标签,分页显示及翻页出现404错误的解决方法,涉及对代码中handle_404方法的修改,具有一定参考借鉴价值,需要的朋友可以参考下
本文实例讲述了Wordpress分类,标签,分页显示及翻页出现404错误的解决方法。分享给大家供大家参考。具体分析如下:
有不少朋友在使用wordpress博客时会碰到在分类,标签,分页显示,翻页出现404错误或找不到页面的情况,这个问题我也碰到了,下面给大家介绍一下解决方法.
在wordpresswp-includesclasses.php里面的handle_404方法 删除&& !is_paged() 即可,代码如下:代码如下:function handle_404() {
global $wp_
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() && !is_paged() ) {
if ( !is_404() )
status_header( 200 );
$wp_query-&set_404();
status_header( 404 );
nocache_headers();
} elseif ( !is_404() ) {
status_header( 200 );
希望本文所述对大家的WordPress建站有所帮助。
大家感兴趣的内容
12345678910
最近更新的内容SEO文章分类将里面的&& !is_paged()删除即可,修改完成后的代码如下:
function handle_404() {
global $wp_
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 );
$wp_query-&set_404();
status_header( 404 );
nocache_headers();
} elseif ( !is_404() ) {
status_header( 200 );
修改后保存即可。
文章关键词:
热门WordPress教程
推荐WordPress教程

我要回帖

更多关于 红米翻页不顺怎么解决 的文章

 

随机推荐