Static Sitemap
- Static sitemaps are Suitable for small websites with relatively static content. You manually list all URLs in an XML file.
Steps to create Static sitemap
- Create a file named sitemap.xml in the app directory.
- Use XML syntax to list your website URLs.
- Update the loc attribute with each page’s URL and the lastmod attribute (optional) with the last modification date (ISO 8601 format).
- Manually maintain this file as your website grows.
Example: This example shows the static sitemap.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns=
"http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://your-website.com/</loc>
<lastmod>2024-06-09T00:00:00Z</lastmod>
</url>
</urlset>
How to Create a Sitemap in Next.js 13?
The Sitemap is an XML file that notifies search engines like Google about the structure and content of the website. This would helps search engines to discover and index the pages efficiently which improve the website SEO (Search Engine Optimization).
Contact Us