Prohibit the search engine to discuz a certain page Post's collection method

Source: Internet
Author: User
Keywords Discuz Forbidden post search engine

As the largest community software and service provider in China, Comsenz's http://www.aliyun.com/zixun/aggregation/29799.html ">discuz! The development team has rich experience in Web application design, especially in the Forum products and related fields, through long-term innovative development, mastered a set of algorithms, data structure to product security leading technology. Make discuz! Whether in the stability, load capacity, security and other aspects of domestic and foreign similar products leading position.

Since June 2001, discuz! has more than five years of application history and more than 300,000 site user cases, is the world's highest maturity, coverage of the largest forum software system.

The current release is divided into Simplified Chinese, Traditional Chinese and English three versions. From discuz! Since 2.0, because of its efficient internationalization of the application of the core, so that it successfully went abroad, into the overseas market. We attach great importance to the whole process of product development and promotion in line with international standards, and always remember the Chinese software to the world's goal, focus on the development of the international standard, has the influence of the Chinese software products, discuz! After 4.0.0, discuz! Development team has increased the internationalization of research and development efforts, through good design and effective publicity, efforts to improve the number of overseas users, improve discuz! The international competitiveness of the brand.

Various reasons, need to prohibit the SE to discuz a page of the collection of posts (such as water version, or for better SEO, etc.). Of course, if you set the permissions, do not allow to browse this page, it must not be included.

This method is needed when both visitors are asked to browse the posts and do not want to have the search engines included. Two years ago in the point of stone hair, but point stone repeatedly, now tourists do not have permission to browse, in order to need people can see, so send again.

1. Use robots.txt file, prohibit list

Disallow:/forum-1-

#数字即为要禁止版块的ID.

#注意数字最后的-do not omit, otherwise even the first version of the ID 11,12 1 is banned

2. Add meta robots tag, prohibit the inclusion of a forum post

Modify viewthread.php file in $oldtopics = Isset ($_dcookie[' oldtopics '))? $_dcookie[' Oldtopics ']: ' D '; Add:
if ($thread [' FID ']==1] {
$seohead. = ' <meta name= ' content= ' noindex,nofollow '/> ';
}
To determine which version ($thread [' FID ']) The post belongs to, add meta-robots to it.

Although the 1th block included, but it is possible from the dynamic form or other places to visit the post link, so also use the 2nd to add Meta to the post page. These two points in the section ID and want you to prohibit the plate corresponding, if there are multiple sections, the 1th add line on the line, the 2nd to modify the logical expression in the break statement.

Original: http://seo.banmutian.org/thread-47-1-1.html

Author: SEO Handyman primary Hair: http://seo.banmutian.org/

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.