Recommended: Commonly used ASP functions on web pages '------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------
The goal of building a website is to increase visibility and increase user traffic. Search engine optimization is a way to increase website traffic. Another approach is to use a sitemap, which allows you to specify which pages a search engine contains or indexes. The concept of site map was originally developed by Google, and recently Yahoo and MSN also agreed to apply this standard. This week we explain the site map standards.
Need to establish standards
Search engines use spiders to crawl on the internet, locate web pages and include them into databases. This process requires a lot of resources, and sometimes you want the indexed web page to be ignored while the useless web page is included. A typical example is the Google Googlebot spider who searches for changes and new web pages on the web, includes them and classifies them accordingly.
The site map provides a way for a website to clarify which pages should be indexed and what new content is added to the website. Basically, it provides a communication channel between search engines and websites. In theory, it relieves the resource burden by reducing the processing objects of search engine spiders, but the current site map cannot replace the crawling process.
Sitemap Introduction
A website map is an XML file that contains a URL table and related properties that specify what content should be indexed for a specific website. The site map must be UTF-8 encoded. Here are the XML elements required for the site map file:
<urlset> -- The site map file starts and ends with this tag. The starting tag must include the namespace (xmlns) attribute.
<url> -- Each web page in the file is contained in this element.
<loc> -- The actual address of the web page specified in the file. It is a child element of the <url> element.
There are also the following optional elements in the file:
<lastmod> -- a child element of the <url> element. It specifies the last time the web page was updated.
<changefreq> -- a child element of the <url> element. It specifies how often the web page is updated (regular, hourly, daily, weekly, monthly, annual and never updated).
<priority> -- a child element of the <url> element. It specifies the importance of web pages in the website relative to other web pages, with the valid value of 0.0-1.0 and the default value is 0.5.
The following sitemap sample shows how to apply these elements in a sample webpage. It specifies the home page for a assumed website, as well as its update frequency, the last update time and priority in the website.
| The following is the quoted content: <?xml version=1.0 encoding=UTF-8?> <urlsetxmlns=http://www.sitemaps.org/schemas/sitemap/0.9> <url> <loc>http://www.test.com/</loc> <lastmod>2006-11-20</lastmod> <changefreq>daily</changefreq> <priority>0.3</priority> </url> </urlset> |
The location of the site map file is up to you, but its location determines the set of URLs that may contain in the file. For example, if the sample sitemap file above is located at http://www.test.com/sitemap.xml, the sitemap file may contain any URL starting with http://www.test.com/. Therefore, we recommend storing the site map file in the root directory of the website. The size of the website map file must not exceed 10MB. If a file exceeds this limit, it is necessary to use gzip for compression.
Create a website map
Since sitemaps are based on XML, they can be easily created and edited using any text editor, but specialized tools can also be applied. The following list provides some current tools:
Node Map: A tool for generating and confirming sitemap XML files.
Gsitemap: A website map generation tool created by applying .NET Framework. phpSitemapNG: A free website map generator written in PHP.
Notice search engines
After creating a website map file, it should be submitted to a search engine. Each search has its own sitemap submission interface. Google's Webmaster tool set contains a website map submission page. You must register an account before using it. Yahoo also has a free website map submission page, but you also have to register an account before using it. Other search engines will also imitate Google, Yahoo and MSN to provide similar features.
Other tools
Search engines crawl the web pages inclusion process slowly and require a lot of resources. A website map provides a way to search for a website that specifies what content should be included. They create simple text format files like XML, but there are many tools that can help you build your sitemap files. Now, they are just supplementing the current processing process.
Share: Use Filter to achieve secondary retrieval of information Think about a question: How to achieve secondary search based on the first search? Usually, our approach is to save the search conditions during the first search, and combine two search conditions during the second row search to perform a new query on the database, such as: the first search: