Joomla Sitemap Guide

How to create, configure, and submit an XML sitemap for Joomla sites. Covers built-in options, popular extensions, manual creation, and common issues.

Joomla does not ship with a built-in XML sitemap generator. Unlike WordPress, which has core sitemap support since version 5.5, Joomla relies on extensions to create and manage sitemaps. This means you need to install a third-party component, use an external tool, or create your sitemap manually.

This guide covers all three approaches, along with configuration tips and common problems Joomla site owners run into. For a general overview of what sitemaps are and why they matter, see our XML sitemap guide.

Does Joomla Have a Built-In Sitemap?

No. As of Joomla 4 and Joomla 5, there is no core sitemap feature. Joomla generates a basic robots.txt during installation, but it does not create an XML sitemap automatically.

This means that out of the box, your Joomla site does not have a sitemap at yourdomain.com/sitemap.xml. You need to create one.

Option 1: Joomla Sitemap Extensions

The most common approach is installing a Joomla extension that generates and maintains your sitemap automatically.

OSMap (formerly XMap)

OSMap is the most widely used Joomla sitemap extension. It has been around since the Joomla 1.x days (under the name XMap) and supports Joomla 3, 4, and 5.

Setup:

  1. Download OSMap from the Joomla Extensions Directory or the developer's site
  2. Install it through Extensions > Manage > Install in the Joomla admin panel
  3. Navigate to Components > OSMap
  4. Create a new sitemap and select which menus to include
  5. OSMap generates both an XML sitemap (for search engines) and an HTML sitemap (for users)

Key features:

  • Automatic sitemap generation from Joomla menus
  • Support for popular Joomla components (Virtuemart, K2, EasyBlog, SobiPro)
  • Configurable URL priority and change frequency per menu item
  • Both XML and HTML sitemap output
  • Multilingual site support for sites using Joomla's language associations

Configuration tips:

  • Include all menus that contain content you want indexed
  • Exclude menus that point to login pages, admin areas, or non-public content
  • Set the XML sitemap URL to something discoverable (OSMap typically uses /component/osmap/sitemap/1?format=xml)
  • Create an alias or redirect so your sitemap is accessible at /sitemap.xml

JoomlaSEO (JSitemap)

JSitemap is a commercial Joomla extension with more advanced features.

Features beyond basic generation:

  • Automatic submission to Google Search Console via API
  • Sitemap error monitoring
  • Support for sitemap index files for large sites
  • Video and image sitemap support
  • Priority and change frequency rules based on content type

Kickstart Sitemap

A simpler, free alternative that generates basic XML sitemaps from Joomla menus. It is lighter than OSMap but has fewer configuration options. Good for small sites that just need a functional sitemap.

Option 2: External Sitemap Generators

If you prefer not to install an extension, you can generate your sitemap with an external tool and upload it to your Joomla site.

How it works

  1. Use an online sitemap generator to crawl your site and produce an XML file
  2. Download the generated sitemap.xml file
  3. Upload it to the root of your Joomla site (the same directory as index.php and configuration.php)
  4. Reference it in your robots.txt

Advantages

  • No extension to install or maintain
  • No impact on Joomla's performance
  • Works regardless of your Joomla version

Disadvantages

  • The sitemap does not update automatically when you publish new content
  • You need to regenerate and re-upload periodically
  • New pages are not included until you regenerate

This approach works for small, static sites that do not change frequently. For active sites with regular content updates, an extension that generates the sitemap dynamically is better.

Option 3: Manual Sitemap Creation

For very small sites, you can create a sitemap by hand using a text editor.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-06-09</lastmod>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <lastmod>2026-03-15</lastmod>
  </url>
  <url>
    <loc>https://example.com/services</loc>
    <lastmod>2026-01-10</lastmod>
  </url>
  <url>
    <loc>https://example.com/contact</loc>
    <lastmod>2026-01-10</lastmod>
  </url>
</urlset>

Save this as sitemap.xml and upload it to your Joomla root directory. Update it manually whenever you add or remove pages.

For templates you can customize, see our sitemap templates article.

Configuring robots.txt for Joomla

Joomla creates a default robots.txt during installation. You need to add a sitemap reference to it.

Open the robots.txt file in your Joomla root directory and add this line at the bottom:

Sitemap: https://example.com/sitemap.xml

Replace the URL with the actual location of your sitemap. If you are using OSMap, the URL might be different (like /component/osmap/sitemap/1?format=xml). Use whatever URL produces the XML output.

Default Joomla robots.txt considerations

The default Joomla robots.txt blocks several directories:

Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /layouts/
Disallow: /libraries/
Disallow: /logs/
Disallow: /modules/
Disallow: /plugins/
Disallow: /tmp/

Make sure these blocks do not prevent access to your sitemap URL. If your sitemap is generated by a component (like OSMap), the URL starts with /component/, which might be blocked by the /components/ rule. Note that /components/ (with an "s") and /component/ (without) are different paths, so the default rule should not block OSMap. But verify this by testing the sitemap URL in Google's robots.txt tester.

Submitting Your Joomla Sitemap

Google Search Console

  1. Log in to Google Search Console
  2. Select your Joomla site's property
  3. Navigate to Sitemaps in the left menu
  4. Enter your sitemap URL and click Submit

For a detailed walkthrough, see how to submit a sitemap to Google.

Bing Webmaster Tools

  1. Log in to Bing Webmaster Tools
  2. Select your site
  3. Navigate to Sitemaps
  4. Submit your sitemap URL

See how to submit a sitemap to Bing.

Joomla-Specific Sitemap Issues

SEF URLs and sitemap conflicts

Joomla's Search Engine Friendly (SEF) URL system rewrites URLs from the default format (/index.php?option=com_content&view=article&id=1) to clean URLs (/about). Make sure your sitemap contains the SEF versions of your URLs, not the raw Joomla URLs.

Most sitemap extensions handle this correctly. If you generate your sitemap externally or manually, verify that the URLs in the sitemap match what users see in their browsers.

Multilingual Joomla sites

Joomla has built-in multilingual support with language associations between content items. If you run a multilingual Joomla site:

  • Your sitemap should include URLs for all language versions
  • Consider using hreflang annotations in your sitemap (OSMap Pro supports this)
  • Each language version should have its own canonical URL
  • Make sure the language prefix is included in sitemap URLs (/en/about, /fr/a-propos)

Duplicate content from component URLs

Joomla content can sometimes be accessible at multiple URLs (through menus, categories, and direct component access). Your sitemap should include only the canonical version of each URL. If you have SEF URLs enabled, do not also list the raw component URLs.

Large Joomla sites

If your Joomla site has more than 50,000 URLs (common for large e-commerce sites using Virtuemart or HikaShop), you need a sitemap index file that splits your URLs across multiple sitemaps. JSitemap handles this automatically. OSMap may need additional configuration for very large sites.

Keep your extension updated

Joomla sitemap extensions occasionally have compatibility issues after Joomla core updates. After updating Joomla, verify that your sitemap is still generating correctly. Check the sitemap URL in your browser to confirm it returns valid XML.

Common Mistakes

Not creating a sitemap at all

Many Joomla site owners assume Joomla creates a sitemap automatically. It does not. Without an extension or manual file, your site has no sitemap. While Google can discover pages through links, a sitemap makes discovery faster and more reliable.

Using an outdated extension

Some Joomla sitemap extensions have not been updated for Joomla 4 or 5. Using an incompatible extension can generate broken sitemaps or cause errors. Check the extension's compatibility before installing.

Pointing the sitemap to non-canonical URLs

If your site uses www.example.com as the canonical domain, your sitemap URLs must use www.example.com, not example.com. Similarly, if you use HTTPS, all sitemap URLs must use https://.

Forgetting to update the sitemap after major changes

If you delete pages, change URL structures, or reorganize your site, make sure your sitemap reflects these changes. A sitemap full of 404 URLs signals poor maintenance to search engines.

Summary

Joomla does not generate sitemaps by default. Install OSMap or a similar extension for automatic generation, use an external tool for static generation, or create a small sitemap manually. Reference it in your robots.txt and submit it to Google Search Console and Bing Webmaster Tools. Keep the extension updated and verify the sitemap after Joomla core updates.

Generate a sitemap for your Joomla site

Crawl your Joomla site and get a standards-compliant XML sitemap ready to submit.

Try Instant Sitemap