Wordpress3.0 Chinese label link bug with 404 error page

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

You can see that I use the WordPress theme is Shanhan SEO blog theme, personally like this green style template, give people a fresh upward feeling. This set of templates I have published the fourth annual SEO contest third place WordPress Template This article, we can download to use, but Shanhan this set of WordPress theme tag links appear 404 error page, that is, the link error, what is the cause I also searched a lot of information and tried to modify many times before the success, it is twists ah.

Search for a number of related issues, such as Baidu above the search for "wordpress tag link 404 error page" This word, only to find the reason, the original WordPress can not open the Chinese tag link because WordPress does not support the Chinese code, Need to modify the WordPress support Chinese encoding (GBK or UTF-8) only, I use the Utf-8 code here, when I know the problem is coding, and then according to the figure Saoyi, Looking for the classes.php file, the results did not find this file, the original version of wordpress3.11 did not classes.php this file, replaced by the class-wp.php file, so I put the file inside the two code replace upload back to space, about WordPress theme Label The problem with the 404 error page of the check link is perfectly resolved. The following are the method steps to resolve:

Open the class-wp.php in Wp-include, find the following two code to modify, with Dreamweaver open class-wp.php file,

Find and put 142 lines

$pathinfo = $_server[' path_info '];

Replace

$pathinfo = mb_convert_encoding ($_server[' path_info '), "Utf-8″, GBK");

Put 147 lines

$req _uri = $_server[' Request_uri '];

Replace

$req _uri = mb_convert_encoding ($_server[' Request_uri '), "Utf-8″", "GBK");

After modification, save, then upload the saved class-wp.php file to the server and overwrite the original file.

If not resolved, may wish to find another file "rewrite.php", I have not tried, do not know how to solve. About wordpress Tag link 404 error Problem Solving method is this, hope also can solve your problem. Article Author: Luo ping @ Dark horse Prince Blog Address: Http://www.luoping.info Welcome reprint!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.