Home  >  Article  >  Topics  >  What are the sitemap formats?

What are the sitemap formats?

little bottle
little bottleOriginal
2019-05-25 10:53:262956browse

The three formats of Sitemap are: text format, xml format, and HTML format. You can choose any format to organize the sitemap according to your own situation. The specific format description and examples are as follows:

What are the sitemap formats?

The complete single xml data format is as follows:

What are the sitemap formats?

The first position: XML file must be encoded in utf-8

The second position: Required tag, grammatical standard

The third position: URL link address, length must not be exceeded More than 256 bytes

The fourth position: Optional, specify the last update time of the link to tell the update frequency that this link may appear

The fifth position: Optional, URL link priority Ratio

txt text format

1. Create a new notepad file and name it sitemap.txt;

2. Open the Sitemap.txt file, Enter the URL of your website in it. The requirement is a complete URL per line (such as http://seo.aizhan.com/term/147.html), and it cannot contain any other characters except the URL;

3. The maximum number of URLs that can be added to each Sitemap.txt file is 50,000. If there are more than this number, you can open a new file;

4. Upload this notepad to the website through Root directory;

 5. Provide the address where the notepad exists to the search engine through the search engine submission portal.

Html web page format

Generally, some sitemap generation tools are used, or some CMS comes with its own functions. You can search on Baidu.

The above is the detailed content of What are the sitemap formats?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn