DEV Community

shubham khatik
shubham khatik

Posted on

Sitemaps for SEO

πŸš€ Just discovered something new about SEO & AI!

We all know tags help describe a single page, but here’s the twist:

πŸ‘‰ Sitemaps (sitemap.xml) tell Google & AI about your entire website and when each page was last updated.

Without it, crawlers guess your structure. With it, you hand them a clean map + freshness signals πŸ“….

Example (inside sitemap.xml):

<url>

  <loc>https://example.com/ai-seo</loc>

  <lastmod>2025-08-24</lastmod>

</url>
Enter fullscreen mode Exit fullscreen mode

= your page URL

= when the page was last updated

This helps search engines & AI summaries pick the freshest content, not outdated info.

πŸ’‘ In React apps β†’ put sitemap.xml in /public/ folder.

πŸ’‘ In Next.js (App Router) β†’ create app/sitemap.ts and let Next auto-generate lastmod.

πŸ”‘ Takeaway:

SEO is shifting from just meta tags β†’ to structured data + sitemaps + freshness.

If you want your content to show up in AI summaries, freshness is no longer optional πŸš€.

linkedin

Top comments (0)