-
Although there are many requirements for a tree structure when making a website, due to various restrictions, the website is not a complete tree or mesh structure. Therefore, a site map is needed to assist navigation: for users, it can clearly understand the website content; for search engines, it can track links and crawl to the main parts of the website; and for the website itself, it will make the website appear more standardized and professional. change. Therefore, a site map is very necessary for a website.
Generally, there are two types of website maps: HTML version of the website map; the other is the xml version of the website map. Let’s explain one by one:
First, the HTML version of the site map: The English name of this version of the site map is sitemap, s is lowercase, and refers specifically to the HTML version. This version is a page that users can see through the website and lists links to all pages on the website. For some websites that use JS or have too many images, or even use Flash throughout the site, the site map is particularly important and is an important supplement for search engine crawling. For small sites, an HTML version of the sitemap can train all pages of the site. For medium-sized websites, it is impossible to list all pages. You can list key first- and second-level classified pages, or you can divide the site map into blocks. The first block lists the first-level directory, and the next block lists the second-level directory. By continuing this cycle, most pages can be listed. In fact, a website with a good navigation system and internal link structure does not necessarily need a site map listing all page links, because for search engines and users, the nature of the two is somewhat similar.
Second, the XML version of the site map: This version of the site map is called Sitemap in English, but the S is usually capitalized. XML sitemap was first proposed by Google in 2005, and subsequently supported by various search engines including Baidu. The XML version of the sitemap is entirely composed of XML tags, and the file itself must be utf8 encoded. The XML map lists most of the URLs on the website that need to be included, usually one URL per line, and search engines will crawl along these URLs. In addition, there are some tags in the XML version of the site map that we must master: PRiority, which indicates the importance of the URL. The default is 0.5 and the most important is 1.0; changefreg, which indicates the update frequency. Generally, you need to select daily, which means that the website will be updated every day. ; In addition, the XML site map can list up to 50,000 URLs, and the file cannot exceed 10MB. If this size is exceeded, multiple sitemaps can be used.
After the site map is created, it can be submitted directly to the search engine through tools. Most search engines support submission and also have special submission entrances. In addition, you can also use the robots.txt file to notify search engines of the location of the site map. It should be noted that the XML sitemap only notifies the search engine of those pages that need to be included. It only lets the search engine know that these pages exist, but it does not guarantee that they will be included. If they need to be included, they must meet the minimum inclusion standards, so don’t think that there is The existence of the site map is ignored without regard to the website structure and reasonable internal links.
The last thing I want to say is that site maps are particularly important for large websites. They are also of certain importance for general small and medium-sized enterprise websites and personal websites, but it is not obvious. Therefore, after everyone understands the site map, they can make a site map suitable for their own website according to their own situation. Okay, that’s it for this article. Everyone is welcome to contact me. This article comes from: Shenzhen Website Construction, URL: http://www.zijiren.net . Reprinting is welcome. Please keep the link for reprinting. Thank you!
Thanks to Shenzhen Website Construction for your contribution