Submitting sitemap website maps to the search engine is an important step in search engine optimization. sitemap can help the search engine to include your website to the greatest extent possible, especially when a website contains a large number of dynamic addresses or Ajax technology, it can help the search engine capture pages that cannot be crawled during normal processes.
Submitting sitemap website maps to the search engine is an important step in search engine optimization. sitemap can help the search engine to include your website to the greatest extent possible, especially when a website contains a large number of dynamic addresses or Ajax technology, it can help the search engine capture pages that cannot be crawled during normal processes.
Submitting sitemap website maps to the search engine is an important step in search engine optimization. sitemap can help the search engine to include your website to the greatest extent possible, especially when a website contains a large number of dynamic addresses or Ajax technology, it can help the search engine capture pages that cannot be crawled during normal processes.
Sitemap is an XML file. sitemap contains the link addresses of all webpages on your website and related information of the webpage, such as the page update frequency and webpage weight. The following conventions apply to the creation of sitemap website map files:
1. Specify the complete network address, such as: http://www.yinlingkeji.com
2. Each sitemap website map file can contain a maximum of 50,000 websites. If there are more than 50,000 websites, you should create multiple sitemap website Map Files and submit a sitemap index file for them.
3. sitemap website map files need to be saved as UTF-8 encoding.
4. The sitemap website image file can be saved as a ". txt" extension name.
Create sitemap
There are many tools that can automatically generate sitemap website maps. But here we will introduce how to manually create a sitemap website map to understand the structure of the sitemap website map file.
1. Create a new file with the suffix .txt.
2. Enter the following content in a text file:
<? XML version = "1.0" encoding = "UTF-8"?> <Urlset xmlns = "http://www.sitemaps.org/schemas/sitemap/0.9"> </urlset>
3. Add the index information for each webpage in the urlset tag, in the following format:
<URL> <loc> http://www.example.com/</loc> <lastmod> </lastmod> <changefreq> monthly </changefreq> <priority> 1 </Priority> </URL>
Here, the LOC mark is required. Let's explain the meaning of each mark on the sitemap website map.
Lastmod
You can use the lastmod mark to specify the time when the web page was last modified. This mark is optional. The date format uses yyyy-mm-ddthh: mmtzd. the date and time values are optional.
Changefreq
This option is optional and specifies the page change frequency. Valid values: Always, hourly, daily, weekly, monthly, yearly, and never ). Commonly used are daily, weekly, and monthly. Other values are of little significance. Generally, it is appropriate to set the homepage as daily.
Priority
Priority indicates the relative priority of all webpages on the website. The maximum priority value is 1.0, and the minimum priority value is 0.1. The larger the priority value, the more important the page is. Generally, the priority values of homepage (1.0), category (0.8), and product (0.6) are reduced in turn. The priority value does not affect the comparison between your webpage and other webpages. This value is relative to other webpages on your website.
Loc
The URL of the web page, the URL should be clear, such as: http://www.yinlingkeji.com. Do not include images, style sheets, and other addresses.
Submit sitemap website Map
We have created a sitemap website map, uploaded the created sitemap website map file to the server, and then submitted the sitemap website map to Google, Yahoo, Baidu.
Submit sitemap to Google
You can use the Google administrator tool to submit sitemap website maps to Google at http://www.google.com/webmasters /. When the website map file is changed, you can submit it again to Google.
Submit sitemap website map to Yahoo
Yahoo also has a website administrator tool similar to Google, which takes a long time to process at http://sitemap.cn.yahoo.com.
Submit sitemap to Baidu
Baidu does not have similar website administrator tools. One way is to create them in the robots.txt file, for example:
User-Agent: * allow:/sitemap: http://www.yinlingkeji.com/sitem.txt
References