Upgrade to WordPress 2.2 Permalink back slash problem

Source: Internet
Author: User
Keywords WordPress

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

The blog to upgrade to WordPress 2.2, hanging Google AdSense ads, click on a few archive page found that all the public service ads, looked up the reason, the original page, archive page, category the URL of the backslash is missing. There is no backslash page and with the reverse slope of the page, Google AdSense spider think is two pages, no backslash page is considered a new page, naturally no ads match.

Original Address http://sheawey.com/blog/2007/06/
Changed address http://sheawey.com/blog/2007/06

This is a very serious problem for SEO, it is easy to copy webpage, and may enter "supplementary material". You can learn from the following search screenshots of a blog:

Not a supplemental material.

It's a supplemental material.

Because the search engine was included in the time is with a backslash, if now without a backslash, the formation of "supplementary material" is secondary, I worry that my blog will be Google punishment, similar to the "Black Dream SEO blog."

Generally in WordPress 2.2 background open permalink is not going to show me this situation, such as point stone interaction is not. I have this problem mainly because I set the permalink to/%postname%.html, and the average person is set to/%year%/%monthnum%/%day%/%postname%/, the latter is no problem, The former in the WordPress 2.2 has been the problem of the backslash.

How to solve this reverse slope pole?

You can write rewrite URL rules in the. htaccess file, I have directly modified several files, as follows:

wp-includes/link-template.php

193 line, find the Get_month_link function, this function is about the month file, modify

Return apply_filters (' Month_link ', get_option (' home '). User_trailingslashit ($monthlink, ' month '), $year, $month);

For

return apply_filters (' Month_link ', get_option (' home '). User_trailingslashit ($monthlink, ' month '), $year, $month) .' /';

wp-includes/link-template.php

117 lines, find the Get_page_link function, this is about page, modify

return apply_filters (' Page_link ', $link, $id);

For

return apply_filters (' Page_link ', $link, $id). " /";

wp-includes/category-template.php

23 Line, find the Get_category_link function, this is about the classification of category, modified:

return apply_filters (' Category_link ', $catlink, $category _id);

For

return apply_filters (' Category_link ', $catlink, $category _id). ' /';

Author: Sheawey posted on: 2007-06-15 02:40 Last modified: 2007-06-16 12:48
Copyright NOTICE: You can reprint, reprint, please be sure to hyperlink form to indicate the original source and author information and this copyright notice.
Upgrade to WordPress 2.2 Permalink back slash problem

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.