Questions About Baidu forums

Source: Internet
Author: User
Today I checked the Baidu Forum indexing Protocol, one of which is

Step 3: Use an XML file
Upload the XML file sitemap_baidu.xml to the root directory of your website, and ensure that the URL of the file can be accessed by Baidu spider. For example, if the website is post.baidu.com, upload the XML file to post.baidu.com/sitemap_baidu.xml.
When Baidu spider discovers an XML file, it will automatically update the XML file based on the parameters provided above and capture high-quality content.
Note:Baidu Spider does not guarantee that all content you submit will be included.

Refer to the above statement for Forum! The Protocol path of NT is accept! NT's optimization for Baidu is just like an imaginary

If you know the cause of the problem, we can find the following solutions:

First, copy the content generated by sitemap. aspx to the root directory of the forum and name it sitemap_baidu.xml.

If you use the official urlrewriter, you can use the second method.

Add one more rule to the urlrewriter configuration file: rewriterule ^ (. *)/sitemap_baidu.xml $1/tools/sitemap. aspx

I suggest using the second method, because it can be automatically updated;

The second configuration method is as follows:
<Configsections>
<! -- The <configsections> element must contain a <section> tag for the <rewriterconfig> section element.
The type of the section handler is rewriterconfigserializersectionhandler, which is responsible
Deserializing the <rewriterconfig> section element into a rewriterconfig instance... -->
<Section name = "rewriterconfig" type = "urlrewriter. config. rewriterconfigserializersectionhandler, urlrewriter"/>
</Configsections>
<Rewriterconfig>
<Rules>
<! -- Rules for Blog content displayer -->
<Rewriterrule>
<Lookfor> ^ (. *)/sitemap_baidu.xml </lookfor>
<Sendto> $1/tools/sitemap. aspx </sendto>
</Rewriterrule>
</Rules>
</Rewriterconfig>
<Httpmodules>
<Add type = "urlrewriter. modulerewriter, urlrewriter" name = "modulerewriter"/>
</Httpmodules>

TIPS: after this configuration, you still cannot access the correct sitemap_baidu.xml, prompting you That the webpage cannot be found. Some friends say that the reason is that the HTML Parsing is not parsed using the ISAPI of Asp.net.
You can add an extension item with the same configuration as the ASPX page in IIS \ your site \ properties \ main directory \ Configuration \. Note: Do not select "check whether the file exists". Otherwise, the file cannot be found.

Now we can see that it is said that this is the practice of pseudo-static pages. During the process of adding rewriteconfig, we encountered a regular expression problem. Previously, we ignored the role of the regular expression. Now it seems that we have to make up for this knowledge. The next day we will be working with Baidu, it's time for Google and Alexa to make a move. Please wait and see my website http://www.52otuka.com!

Related Article

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.