《wordpress伪静态中文tag标签无法出错》要点:
本文介绍了wordpress伪静态中文tag标签无法出错,希望对您有用。如果有疑问,可以联系我们。
DEDECMS系统具体步骤如下:
DEDECMS系统改动网站 /wp-includes/class-wp.php中如下代码:
- if ( isset($_SERVER['PATH_INFO']) )
- $pathinfo = $_SERVER['PATH_INFO'];
- else
- $pathinfo = '';
- $pathinfo_array = explode('?', $pathinfo);
- $pathinfo = str_replace("%", "%25", $pathinfo_array[0]);
- $req_uri = $_SERVER['REQUEST_URI'];
- //修改为如下代码:
- if ( isset($_SERVER['PATH_INFO']) )
- $pathinfo = mb_convert_encoding($_SERVER['PATH_INFO'], 'utf-8', 'GBK');
- else
- $pathinfo = ”;
- $pathinfo_array = explode('?', $pathinfo);
- $pathinfo = str_replace("%", "%25", $pathinfo_array[0]);
- $req_uri = mb_convert_encoding($_SERVER['REQUEST_URI'], 'utf-8', 'GBK');
DEDECMS系统即可,其实我们总结一下便是:
DEDECMS系统查找:$pathinfo = $_SERVER['PATH_INFO'];
DEDECMS系统改动为:$pathinfo = mb_convert_encoding($_SERVER['PATH_INFO'],“UTF-8″, “GBK”);
DEDECMS系统再查找:$req_uri = $_SERVER['REQUEST_URI'];
DEDECMS系统改动为:$req_uri = mb_convert_encoding($_SERVER['REQUEST_URI'],“UTF-8″, “GBK”); 即可了.
《wordpress伪静态中文tag标签无法出错》是否对您有启发,欢迎查看更多与《wordpress伪静态中文tag标签无法出错》相关教程,学精学透。维易PHP学院为您提供精彩教程。