What is Sitemap?
- When the web page was last updated
- How often it is changed
- What is its importance in comparison to other web pages on the website
Why Is Sitemap Important?
Help search engine bots
If the website is too large there is a chance that the web crawler might miss new or updated content. It is also possible that the pages on your website may not be linked properly and a sitemap comes in handy in such situations.
In other words, a sitemap aids in search engine optimization. It makes it easier for Google, as well as other search engines, to find your website’s content and display them as search results.
Best Practices For Creating Sitemap?
- A Sitemap can have a maximum of 50000 URL's
- Sitemap file should be less than 50 MB.
- Compress the sitemaps. This saves bandwidth.
- You can have more than one sitemaps.
XML Schema of Sitemap?
This example contains just one URL.
Things To Keep In Mind?
1. A sitemap begins with the tag <urlset> and ends with </urlset>
2. The <url> tag is used to define the entry to each URL
3. The <loc> tag defines the location of each page on the website by mentioning the URL All these three tags are mandatory. In addition to these, there are optional tags.
1. <lastmod> can be used to define the last date on which the URL was last modified
2. <changefreq> can be used to define how often the page is likely to change.
The values that are valid for this tag include