How Can Create Multiple Sitemap For website ? - BlogWire

Monday, June 11, 2018

How Can Create Multiple Sitemap For website ?

What is a Sitemap?

A sitemap is a file where you can list the web pages of your site to tell Google and other search engines about the organization of your site content. Search engine web crawlers like Googlebot read this file to more intelligently crawl your site.

A Sitemap allows you to create a file hosted among the other files in your account that informs the search engines of all pages your website contains. In other words, it provides the search engine with detailed information about the content of your website.



Although Sitemaps are mainly used to improve the index process of your website by search engines, they can be used to provide accessibility to certain pages as well. For example, pages that are not accessible via your menus, can be indexed by the search engine if you want.



The Sitemap does not affect the normal way crawler bots index your page – it just extends the visibility and accessibility of your content.



Please note, that having a Sitemap on your website does not guarantee that a certain pages will be indexed and included by the search engines. Neither it affects your page rank.



The Sitemap has certain limitations. For example, it cannot contain more than 50 000 URLs and cannot be bigger than 50 MB. This is why if you plan to create a website with multiple subdirectories and Sitemaps, you will have to use Sitemap Index.

The Sitemap index allows you to include several Sitemap files under one file called Sitemap index. It uses almost the same syntax but instead of including your pages URLs, you will have to add the URLs to your Sitemaps.

Below, you can find a sample code of a Sitemap index.
As you can see the Sitemap index file uses the following XML tags:
  • loc
  • lastmod
  • sitemap
  • sitemapindex
The <loc> and the <lastmod> tags are basically the same as in the normal Sitemap file. The <sitemap> tag encapsulates information about an individual Sitemap. The <sitemapindex> tag provides information about all of the Sitemaps in the file.Be advised that the Sitemap files can be only files located under the same domain or subdomain and should be UTF-8 encoded as well.
It is strongly recommended that you place your Sitemap into the root directory of your web server. The location of a Sitemap file determines the set of URLs that can be included in it. A Sitemap file, for example, located under a subdirectory can include links of all pages in this subdirectory, but not ones above it.

No comments:

Post a Comment