SEMRUSH ONE

Stay Ahead in AI Search & Traditional SEO

Discover More
Outperform your search competitors.
Outperform your search competitors.AI-driven search has arrived—and Semrush One bundles our AI Visibility Toolkit + SEO Toolkit to let you:
See how AI platforms talk about you
Discover valuable topics to cover
Get AI-powered strategy suggestions
Build keyword plans with personalized insights
Identify fixes to improve technical health
Benchmark yourself against competitors
Outperform your search competitors.
10M marketing professionals have already used Semrush
Outperform your search competitors.
Outperform your search competitors.
Outperform your search competitors.

How to create an XML sitemap?

1 min read
September 16, 2025

You create an XML sitemap by listing your website's important pages in a file that helps search engines find and index your content more efficiently.

For small websites (under 500 pages):

  • Use CMS plugins for easy creation. WordPress users can install Yoast or Rank Math to automatically generate sitemaps
  • Include only important, public pages. Add pages you want search engines to index, excluding login pages, thank you pages, or duplicate content
  • Save as sitemap.xml in your root directory. Place it at yoursite.com/sitemap.xml so search engines can easily find it

For larger websites:

  • Use crawling tools like Screaming Frog. These tools automatically scan your site and generate comprehensive sitemaps
  • Set up automatic updates. Configure your sitemap to refresh when you add new content or remove old pages
  • Create multiple sitemaps if needed. Large sites can use sitemap index files that organize content by type or section

After creating your sitemap, add it to your robots.txt file and submit it through Google Search Console and Bing Webmaster Tools for faster discovery.

Keep your sitemap updated by removing broken links and adding new pages regularly to maintain its effectiveness.

Share

Most popular pages