Explanation of XML format of website map

Source: Internet
Author: User
Tags html tags xsl

First of all to briefly understand what is Sitemap.xml file: Sitemap.xml file is strictly in accordance with the XML language of the site map, used to guide the search spider on this site articles, such as the index, it is proposed by the Google concept, the current yahoo,bing has been public Open a statement to support this format, although Baidu did not explicitly support, but the use of Sitemap.xml file is a general trend.

So blog like blog system will bring Sitesmap.xml file, it is to many search engines to provide site information a very good way. If there is no Sitemap.xml file, then the search engine will be on your Site page by page, the efficiency is not high and unfriendly.

Google's "about the site map" provides a detailed sitemap.xml of the wording of the site site design examples are as follows:

<?xml version= "1.0" encoding= "UTF-8" ><?xml-stylesheet "type=" text/xsl "href=" Wp-content/plugins/google-sitemap-generator/sitemap.xsl "?> <urlset xmlns:xsi=" http://www.w3.org/2001/ Xmlschema-instance "xsi:schemalocation=" http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/ Schemas/sitemap/0.9/sitemap.xsd "xmlns=" http://www.sitemaps.org/schemas/sitemap/0.9 ">    < url>         <loc>http://www.uedsc.com/tag/net</loc>         <lastmod>2015-02-27T01:12:09+00:00</lastmod>         <changefreq>weekly</changefreq>         <priority>0.3</ priority>     </url>     <url>          <loc>http://www.uedsc.com/tag/%e9%bd%bf%e8%bd%ae%e5%9b%be%e6%a0%87</loc>          <lastmod>2014-08-08T01:10:39+00:00</lastmod>         < changefreq>weekly</changefreq>         <priority>0.3</priority >     </url> </urlset>

The grammar is simple. Where priority refers to the priority relative to other pages, changefreq refers to the frequency of content updates. With these settings, it is equal to tell the search engine robot, the update of your site, and what you want the search engine priority to include. Format Description 1, the end of the format

As follows:

<?xml version= "1.0"?>
<urlset xmlns= "http://www.sitemaps.org/schemas/sitemap/0.9" >

The two lines of code like HTML tags are dead. Copy can be. The file will end with </urlset> 2, <loc></loc>

The address in the middle of these two labels must be filled in. The format is: http://www.tekuba.net/share, this URL should start with a protocol (for example, HTTP) and end with a slash. This value should be less than 2048 characters. 3, <lastmod>

Optional label label Meaning: the date the file was last modified. This date should be in the format of the CRF. If necessary, this format allows you to omit the time section and use only YYYY-MM-DD. The following: 2014-07-16.

In general this is very important. Google's Android robot compares the last update time of the last index record before indexing this link, and skips the index if the time is the same. So if your link content changes based on the last Google index, you should update that time so that the link content will be parsed and extracted by Google at the next index. 4, <changefreq>

Optional label label Meaning: How often the page may change. This value provides general information to the search engine and may not be fully related to the frequency of the search engine crawling pages. Valid values are:

Always 
hourly 
daily 
weekly 
monthly 
yearly 
never

The value "Always" should be used to describe the document that will change every time it is accessed. The value "Never" should be used to describe the archived URLs. 5, <priority>

Optional label the priority of this URL is related to the priority of the other URLs on your site. Valid values range from 0.0 to 1.0. This value will not affect the results of your Web page being compared to the pages on other sites, just telling the search engine that you think your page is the most important so that they can crawl your page in the way you like. The default priority for a Web page is 0.6.

The XML file must be a UTF-8 encoding format, and you can open the XML in Notepad and save the last selection encoding (or converter) as UTF-8. Understand the role of these tags we can according to their own site to make the appropriate site Sitemap.xml.

Through the above knowledge we can know: if you want to add a http://www.uedsc.com site map, the value needs to add the following code:

<url>
<loc>http://www.uedsc.com/tag/2d%e5%8f%98%e6%8d%a2</loc>
<lastmod> 2015-03-12t18:31:43+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority> 0.3</priority>
</url>
Submit Sitemap.xml

Once the sitemap.xml is finished, you need to submit the XML file to the relevant search engine.

Google submitted URL: Http://www.google.com/webmasters/sitemaps/?hl=zh-CN
Yahoo Submit URL: http://sitemap.cn.yahoo.com/

After the submission, generally within a few hours, the system began to download processing. sitemap.xml checksum.

As for your site map to meet the standards, the most convenient and effective means is to use the Google Administrator tool.

Within a few days after the Google search engine receives your sitemap.xml, Google's administrator tool will back up the detailed analysis, including how many addresses are included in the Sitemap.xml, how many of the addresses Google has added to the index, Sitemap.xml in what happened, and even spiders in the process of the various problems encountered, such as which pages have 404,500 errors will be listed in detail, very convenient.

If you submit the XML file is all right, then next, you are waiting for its search spider to crawl, sitemap documents to inform the frequency of file updates, so search spiders more diligent, the page is included of course faster.

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.