Sitemap, also known as a site map or website map, is a very important tool in website SEO. This article introduces how to
generate a sitemap.xml site map for a WordPress website, and which
sitemap pluginsare worth
Recommendedusing.
What is a sitemap and what is its use?
Explanation of the term SiteMapSitemap, called site map or website map in Chinese, is a file that generates all the pages of your website into an XML format webpage file. For example, the sitemap address of Naibabiji is as follows:

The sitemap contains the addresses of all pages on your website that are allowed to be crawled by search engines. Through this file, every crawlable webpage on your site can be found, hence it is called a site map.
The Role of SitemapThe main role of a sitemap is to guide search engines. After all, search engines are machines and cannot click links on your website like ordinary people using a mouse; they can only discover URLs by crawling webpage code. Therefore, we submit a file containing all URLs on the website that are allowed to be crawled by search engines, making it convenient for search engines to crawl these webpages.
Why are they called URLs allowed to be crawled by search engines?Some pages on a website are not recommended for search engines to crawl, so they will not appear in the sitemap. The links contained in the sitemap site map are all pages we are willing to let search engines crawl. Here, you can also learn about
robots.txt, which is also a tool related to search engine crawling.
Sitemap Plugin Recommendations and Generation Methods
The sitemap.xml file is basically automatically generated using plugins. It is recommended that every
building your own websiteWebsite owners typically generate a sitemap file. Usually, the sitemap is a virtual file at sitemap.xml in your website's root directory. You cannot see it in your server space, but you can access it via the URL. Below, we introduce four commonly used
sitemap generation plugins。

Searching for sitemap in the WordPress admin will yield many results. Naibabiji here introduces the following four plugins.
Methods for generating a sitemap。
- Yoast SEO
- Google XML Sitemaps
- All in One SEO Pack
- Rank Math
Yoast SEO
Yoast SEO is a WordPress SEO plugin. The sitemap feature is part of the premium version. If you installed the free version from WordPress, the sitemap function will not work properly. You can download a premium version:
WordPress's #1 SEO Plugin Yoast SEO Chinese Premium Version Download and Tutorial 
If you are using the Yoast SEO premium version, the XML sitemap feature is enabled by default. You can directly access it via
你网址/sitemap.xmlto access your website's sitemap file.
Google XML Sitemaps
If you are using the free version of Yoast SEO, Yoast SEO will warn you that two sitemap plugins may conflict. However, the Google XML Sitemaps plugin can still generate an XML sitemap file.

After installing and activating the plugin, it will automatically generate an XML format sitemap. If it doesn't generate, save the settings once manually.
All in One SEO Pack
All in One SEO Pack is the second most popular SEO plugin on WordPress. Its sitemap feature is free to use. The method is as follows:

After successful activation, a link for XML Sitemap settings will appear in the All in One SEO Pack menu. Keep the default settings. It will automatically generate the sitemap. The URL is also:
你网址/sitemap.xmlIf your sitemap returns a 404 error, refer to this article:
Solution for All in One SEO Pack plugin sitemap.xml 404 errorRank Math
Rank MathThis is also a WordPress SEO plugin. It is completely free and has more features than the two SEO plugins mentioned above. Unfortunately, it currently does not include Chinese language support (Naiba has localized a version himself; those who need it can join QQ group 774633089 to download).

After activating the plugin, it will automatically create a sitemap file for you. Accessing sitemap.xml will automatically redirect to sitemap_index.xml. The above are the
plugins and methods for adding a sitemap to WordPress. After having the sitemap file, you can submit it to search engines to improve website indexing.
Search Engine Sitemap Submission Addresses
Almost every search engine supports sitemap submission. You can submit your sitemap to the search engine's webmaster backend or add it to the robots.txt file. Of course, you can also choose not to do it; search engines will still index your website.

Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.