Sitemap (sitemap) online generation

The online generation of sitemaps is actually the online generation of sitemaps . There are actually two ways to generate sitemaps online:

First, there is a sitemap site map generation function in the background of the website;

Second, the third-party tools can capture and analyze the site-wide address from one entry address.

If it is the sitemap generation function that comes with the website background, there is nothing to say, it is fast and direct. In this article, I mainly introduce the online generation of sitemap ( sitemap ) realized by the three-party tool of sitemap.

In terms of principle, it is very simple, that is to get all the links of this site on the entry page, then save the links (required to eliminate duplicate links), and then continue to obtain the content of the obtained links, repeat the execution, and no new links appear until the (all link processing done).

These links are then processed into a sitemap format. There are currently three common sitemap formats:

1. HTML

In fact, this format is mainly for people to see, so the best URL map in this format has a good design and organization.

Second, XML

<?xml version="1.0" encoding="utf-8"?>

<!-- XML ​​files need to be encoded in utf-8 -->

<urlset>

<!-- Required Tags -->

    <url>

        <!-- Required tag , this is the definition entry of a specific link, each piece of data must be included in <url> and </url> , which is required -->

        <loc>http://www.webkk.net/map</loc>

        <!-- Required , URL link address , the length must not exceed 256 bytes -->

        <lastmod>2009-12-14</lastmod>

        <!-- You can not submit this tag to specify the last update time of the link -->

        <changefreq>daily</changefreq>

        <!-- You can not submit this tag , use this tag to tell the update frequency that this link may appear -->

        <priority>0.8</priority>

        <!-- You can not submit this tag , it is used to specify the priority ratio of this link relative to other links, this value is set between 0.0-1.0 -- >

    </url>

    <url>

        <loc>http://www.yoursite.com/yoursite2.html</loc>

        <lastmod>2010-05-01</lastmod>

        <changefreq>daily</changefreq>

        <priority>0.8</priority>

    </url>

</urlset>

If there are multiple urls , repeat the segments between <url></url> according to the above format, list all url addresses, and package them into an xml file.

三、TXT

In a txt text, according to one URL per line, list the URLs to be submitted. It should be noted here that each line of the text file must have a URL. URLs must not contain line breaks; should not contain any information other than the URL list; you must write the full URL, including http ( https ).

After you have this sitemap file, all you need to do is to analyze it yourself or submit it to search engines. An important link is overlooked here, which is to make a sitemap. Making a sitemap is also a science, and you need to consider whether you can obtain links to all websites, and whether you can generate full-site links at one time.

As far as I know, there are many tools for generating sitemaps online, here I recommend using the free sitemap generation tool ( https://sitemap.webkk.net ) . Although this tool is free and online, its performance is not inferior to offline tools. The free sitemap generation tool uses modern HTML5 API to build a local database. The server background only handles page acquisition and link analysis, and data storage, analysis, and comparison are placed locally. The benefits of doing this are:

1. Open the website map link of the whole site;

2 , the power failure recovery function can;

3. Permanently save data;

4. The second use seconds to generate.

Before finding this tool, Xiao Bian compared all the online sitemap generation tools on the market at this stage, and none of them have opened all link generation, only a certain amount of links can be obtained. All later found this tool and shared it for everyone to use.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324530893&siteId=291194637