How to Create a Sitemap
How to Create a Sitemap for Your Website: Complete SEO Guide
Want search engines to discover your website pages more efficiently? Creating an XML sitemap is an important step in technical SEO. Whether you manage a WordPress website, Shopify store, WooCommerce shop, or custom-built website, a sitemap helps search engines find important URLs.
In this complete guide from ObeySoft, you’ll learn how to create a sitemap, find your existing sitemap, submit it to Google Search Console, and avoid common technical SEO mistakes.
What Is a Sitemap?
A sitemap is a file or page that lists important URLs on a website. It helps search engines or visitors understand the structure of your content.
An XML sitemap is primarily designed for search engines such as Google and Bing. It provides URLs and may include additional information, such as the last modification date.
An HTML sitemap is designed mainly for website visitors, giving them a navigable list of important pages.
Why Is a Sitemap Important for SEO?
A sitemap helps search engines:
- Discover newly published pages and blog posts.
- Find important pages that may have limited internal links.
- Understand which canonical URLs you want crawled.
- Discover updated content when accurate modification dates are provided.
- Find content across large websites and eCommerce stores.
Important: Creating or submitting a sitemap does not guarantee indexing or higher Google rankings. It is a discovery aid, not a ranking shortcut.
How to Create a Sitemap: Step-by-Step
You can create a website sitemap using your content management system, an SEO plugin, or a sitemap generator.
Step 1: Check Whether Your Website Already Has a Sitemap
Before generating a new sitemap, check whether your website already provides one.
Common sitemap URLs include:
https://example.com/sitemap.xmlhttps://example.com/sitemap_index.xmlhttps://example.com/wp-sitemap.xml
Replace example.com with your website domain.
If a valid sitemap already exists, you may not need to create another one.
Step 2: Create a Sitemap in WordPress
WordPress includes built-in XML sitemap functionality.
For many WordPress installations, the default sitemap is available at:
https://example.com/wp-sitemap.xml
To find your sitemap:
- Open your WordPress website.
- Enter
/wp-sitemap.xmlafter your domain. - Check whether an XML sitemap is displayed.
- Review which pages and posts are included.
- Use an SEO plugin if you need additional configuration options.
If your website uses a dedicated SEO plugin, its sitemap may replace or disable the WordPress default sitemap.
Step 3: Create an XML Sitemap Using Rank Math
Rank Math is a popular WordPress SEO plugin that provides configurable XML sitemap functionality.
Follow these steps:
- Log in to your WordPress Dashboard.
- Open Rank Math SEO → Dashboard.
- Enable the Sitemap module if it is not already active.
- Navigate to Rank Math SEO → Sitemap Settings.
- Configure the content types you want to include.
- Save your changes.
- Open your sitemap index.
The standard Rank Math sitemap index URL is:
https://example.com/sitemap_index.xml
You can configure post, page, category, product, and other sitemap settings based on your website structure.
SEO tip: Include important, canonical, indexable URLs. Avoid filling your sitemap with unnecessary duplicate pages, redirects, and intentionally noindexed content.
Step 4: Create a Sitemap for a Shopify Website
Shopify automatically generates XML sitemaps for its stores.
The standard URL is:
https://yourstore.com/sitemap.xml
Shopify sitemaps can include product, collection, page, and blog URLs.
To check your Shopify sitemap:
- Open your store domain.
- Add
/sitemap.xml. - Review the available sitemap files.
- Confirm that your important products and collections are discoverable.
- Submit the sitemap to Google Search Console.
In most cases, you do not need a separate sitemap generator for Shopify.
Step 5: Create a Sitemap for a Custom HTML Website
If your website is built using HTML, CSS, JavaScript, or a custom framework, you can create an XML sitemap manually or generate one programmatically.
A basic XML sitemap looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
</url>
<url>
<loc>https://example.com/about/</loc>
</url>
<url>
<loc>https://example.com/services/</loc>
</url>
<url>
<loc>https://example.com/contact/</loc>
</url>
</urlset>
Save the file as sitemap.xml and place it at your website’s root directory if your hosting setup allows it.
Use absolute URLs, valid XML, and UTF-8 encoding.
How to Submit a Sitemap to Google Search Console
Once your XML sitemap is accessible, you can submit it through Google Search Console.
Follow These Steps
- Visit https://search.google.com/search-console/
- Select your verified website property.
- Open Indexing → Sitemaps.
- Enter your sitemap URL or path in the submission field.
- Click Submit.
- Review the submission status and any reported errors.
For WordPress websites using Rank Math, the submitted path is commonly sitemap_index.xml.
For Shopify websites, the path is commonly sitemap.xml.
Google may take time to retrieve or process your sitemap. A successful submission does not mean every URL will be indexed.
XML Sitemap vs HTML Sitemap
| Feature | XML Sitemap | HTML Sitemap |
|---|---|---|
| Primary audience | Search engines | Website visitors |
| Main purpose | URL discovery | Website navigation |
| Common format | XML | HTML page |
| Search Console submission | Yes | Not normally needed |
| Typical use | Technical SEO | User experience |
A website can use both formats when they provide a clear purpose.
XML Sitemap Best Practices for SEO
A well-maintained sitemap should follow these recommendations.
Include Canonical URLs
Use the preferred version of each important URL. Avoid including unnecessary duplicates created by tracking parameters or alternate paths.
Keep Your Sitemap Updated
Your sitemap should reflect important additions, deletions, and content changes.
If you use the XML lastmod field, ensure that it represents meaningful content updates rather than inaccurate timestamps.
Follow Sitemap Size Limits
A single sitemap must not exceed 50,000 URLs or 50 MB uncompressed under Google’s sitemap limits.
For larger websites, split URLs into multiple sitemaps and use a sitemap index.
Avoid Invalid URLs
Regularly review your sitemap for:
- Broken URLs returning 404 errors.
- Unnecessary redirects.
- Duplicate URLs.
- Pages intentionally blocked from indexing.
- Non-canonical pages.
- Incorrect HTTP and HTTPS versions.
Use Internal Linking
A sitemap complements internal linking but does not replace it.
Important pages should be accessible through clear navigation and relevant internal links.
Does a Sitemap Help With AEO and GEO?
A sitemap can support the technical foundation of Answer Engine Optimization (AEO) and Generative Engine Optimization (GEO), but it does not directly guarantee AI visibility.
AI-powered search experiences may use search indexes, web crawling, and other information sources to discover content.
A sitemap can assist search-engine discovery, while the quality and structure of your website content influence how useful that content is to readers and automated systems.
For better SEO, AEO, and GEO readiness, focus on:
- Clear and accurate answers to common questions.
- Descriptive headings and well-structured pages.
- Relevant internal links.
- Consistent business information.
- Original, helpful content with credible sources.
- Accessible, crawlable pages.
- Relevant structured data where supported.
Businesses should not assume that submitting an XML sitemap will automatically make their website appear in ChatGPT, Google AI Overviews, or Perplexity.
Common Sitemap Errors and How to Fix Them
Sitemap Returns a 404 Error
Check the sitemap URL, plugin configuration, permalink settings, and website rewrite rules.
For WordPress sites using Rank Math, verify that the sitemap module is enabled and clear relevant caches when necessary.
Sitemap Contains Noindexed Pages
Review your SEO plugin’s indexing and sitemap settings. Remove pages that you do not want indexed.
Google Cannot Fetch the Sitemap
Verify that the sitemap is publicly accessible, returns an appropriate HTTP status, and is not blocked by server or security rules.
Multiple Sitemaps Exist
Having multiple sitemap files is not automatically a problem.
However, avoid submitting duplicate sitemap sets generated by competing SEO plugins. Use a consistent configuration with your preferred sitemap system.
Frequently Asked Questions About Creating a Sitemap
How do I create a sitemap for free?
You can create a sitemap for free using WordPress’s built-in functionality, the free version of Rank Math, or a suitable XML sitemap generator.
Does every website need an XML sitemap?
Not every website strictly needs one. Small websites with strong internal linking may have all their pages discovered naturally. However, sitemaps are useful for many websites, especially larger or frequently updated ones.
How do I find my sitemap URL?
Try /sitemap.xml, /sitemap_index.xml, or /wp-sitemap.xml after your website domain. The correct path depends on your CMS and SEO configuration.
Can I create a sitemap without a plugin?
Yes. WordPress includes built-in sitemap functionality, and custom websites can use manually generated or automated XML files.
How often should I update my sitemap?
Update it whenever important indexable URLs are added, changed, or removed. Most CMS platforms and SEO plugins handle this automatically.
Does a sitemap improve Google rankings?
A sitemap helps search engines discover URLs, but it does not directly guarantee better rankings. Content quality, relevance, website usability, and other search signals also matter.
How many URLs can an XML sitemap contain?
Google supports up to 50,000 URLs and 50 MB uncompressed per sitemap file. Larger websites can use multiple sitemap files.
Can a sitemap improve visibility in Google AI Overviews?
A sitemap may support page discovery within Google’s search infrastructure, but it does not guarantee inclusion or citations in Google AI Overviews.
Get Technical SEO Support From ObeySoft
Creating a sitemap is an important part of maintaining a search-engine-friendly website. However, technical SEO also involves crawlability, indexability, website architecture, canonical URLs, structured data, and performance optimization.
ObeySoft provides website development and SEO services for businesses targeting India, the USA, UK, Canada, Australia, and other international markets.
Whether you use WordPress, WooCommerce, Shopify, or a custom website, our team can help you review technical SEO issues and improve your site’s search readiness.
Explore our services: https://www.obeysoft.com/
Helpful official resources:
- Google Search Central: https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap
- Google Search Console: https://search.google.com/search-console/
- Rank Math Sitemap Documentation: https://rankmath.com/kb/configure-sitemaps/

