sitemap


• A sitemap is an XML file that gives Google and other search engines a list of all the pages on your site.
• Purpose: To enable bots to crawl your site faster and more accurately.

Basic Structure


:The full URL of the page. For example: https://www.site.com/example/1
:When was the page last updated?
:Suggests to bots how often the page changes
: The page's priority is between 0.0 and 1.0. The main page is generally 1.0, and subpages are 0.5-0.8.

                        <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
        <loc>URL</loc>
        <lastmod>YYYY-MM-DD</lastmod>
        <changefreq>frequency</changefreq>
        <priority>0.0-1.0</priority>
    </url>
</urlset>
                    

Result


• The sitemap is a guide for bots.
• Home page, static pages and dynamic content are located separately in .
• Using lastmod, changefreq, priority is not mandatory but helps SEO.