PHPackages                             mage2kishan/module-xml-sitemap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mage2kishan/module-xml-sitemap

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

mage2kishan/module-xml-sitemap
==============================

Panth XML Sitemap — sharded XML sitemap generator for Magento 2: per-store profile CRUD, product/category/CMS/landing-page/blog/video/image/additional-link contributors, hreflang tags, image + video tags, auto-split at configurable threshold, gzip compression, XSL stylesheet, search-engine ping, delta tracking, async shard queue, cron scheduling, CLI generator. Hyva and Luma compatible. Extracted from Panth\_AdvancedSEO.

1.0.23(1mo ago)066↓66.7%2proprietaryPHPPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Apr 21Pushed 2mo agoCompare

[ Source](https://github.com/mage2sk/module-xml-sitemap)[ Packagist](https://packagist.org/packages/mage2kishan/module-xml-sitemap)[ Docs](https://kishansavaliya.com)[ RSS](/packages/mage2kishan-module-xml-sitemap/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (16)Versions (25)Used By (0)

Magento 2 XML Sitemap Extension: Sharding, Hreflang, Image &amp; Video Tags (Hyva + Luma)
=========================================================================================

[](#magento-2-xml-sitemap-extension-sharding-hreflang-image--video-tags-hyva--luma)

[![Magento 2.4.4 - 2.4.8](https://camo.githubusercontent.com/079c832211eed4f9451ebe264e3865f825b0f9f31b041cbf03676c6e254535d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e342e342532302d2d253230322e342e382d6f72616e67653f6c6f676f3d6d6167656e746f266c6f676f436f6c6f723d7768697465)](https://magento.com)[![PHP 8.1 - 8.4](https://camo.githubusercontent.com/56b3cce18841623e2cbed2ebf09b06be1be8807e99e6e054a89d304ab4790b8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532302d2d253230382e342d626c75653f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://php.net)[![Hyva + Luma](https://camo.githubusercontent.com/d4d6a05401973034a5aae392f030440eefa40afc9191ffb06ed897af5d25adb1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5468656d65732d487976612532302532422532304c756d612d313462386136)](https://www.hyva.io)[![Live Demo & Details](https://camo.githubusercontent.com/17ef7a5bd6cb0a8e19e7679ec1093f49091c4a823775ce7166589c57b77130b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c69766525323044656d6f25323025323625323044657461696c732d6d6167656e746f2d2d322d2d786d6c2d2d736974656d61702d3044393438383f7374796c653d666c6174)](https://kishansavaliya.com/magento-2-xml-sitemap.html)[![Packagist](https://camo.githubusercontent.com/8fa5fed3dba5c9cbc1bf5c2e2fd2f317478d20abcfd2f343eaf86236f40abcbb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b61676973742d6d616765326b697368616e2532466d6f64756c652d2d786d6c2d2d736974656d61702d6f72616e67653f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/mage2kishan/module-xml-sitemap)[![Upwork Top Rated Plus](https://camo.githubusercontent.com/6f72584179420c41ed90432fd2579a4ed36199d4229e8181d20f353c1c4ee4eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5570776f726b2d546f702532305261746564253230506c75732d3134613830303f6c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/freelancers/~016dd1767321100e21)[![Website](https://camo.githubusercontent.com/f1ae86d28e2b505aee60f240d3e5508e390b0a8dc7a9b7ecf1b450fad862053f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576562736974652d6b697368616e736176616c6979612e636f6d2d304439343838)](https://kishansavaliya.com)

> **A complete XML sitemap replacement for Magento 2.** Panth XML Sitemap adds per-store sitemap profiles, seven entity contributors, hreflang alternate tags, image and video tags, automatic shard splitting, gzip compression, search-engine ping, delta tracking, an async queue, a daily cron, and a CLI command. Works identically on **Hyva** and **Luma**.

**Product page:** [kishansavaliya.com/magento-2-xml-sitemap.html](https://kishansavaliya.com/magento-2-xml-sitemap.html)

---

Quick Answer
------------

[](#quick-answer)

**What is Panth XML Sitemap?** It is a Magento 2 sitemap extension that replaces the native single-blob sitemap pipeline with a sharded, delta-tracked generator that handles hreflang, images, video, gzip, and search-engine ping out of the box.

**What does it add to my store?**

- **Per-store sitemap profiles** so each store view can have its own contributor list, shard size, gzip setting, and cron schedule.
- **Seven entity contributors**: product, category, CMS page, landing page, blog, video, and additional links.
- **Hreflang alternate tags** for multi-language stores, added per URL inside each shard.
- **Image and video sitemap tags** so Google Image Search and video results can index your media.
- **Auto-sharding** that splits files at a configurable URL cap and closes early if a shard would exceed 45 MB.
- **Delta tracking** so only changed entities regenerate on each cron run.
- **Google and Bing ping** after every successful write.
- **A CLI command** for CI pipelines and manual rebuilds.

**Which themes are supported?** Both **Hyva** and **Luma**. The sitemap is a backend-only pipeline; there is no frontend JavaScript, so it works with any theme.

**What does it need?** Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, and the free `mage2kishan/module-core` package.

---

Need Custom Magento 2 Development?
----------------------------------

[](#need-custom-magento-2-development)

> **Get a free quote for your project in 24 hours** for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.

 [ ![Get a Free Quote](https://camo.githubusercontent.com/eac8c45d21cff8b139ddc392325f3bd6c8266a6f3d7b23f15131c958f3d3c8d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f476574253230612532304672656525323051756f74652532302545322538362539322d5265706c7925323077697468696e2532303234253230686f7572732d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/get-quote)

### Kishan Savaliya

[](#kishan-savaliya)

**Top Rated Plus on Upwork**

[![Hire on Upwork](https://camo.githubusercontent.com/b69353d3c6e192f4d03cc36bb8883612004e32f54dd2dbcc1e700dd791acd875/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652532306f6e2532305570776f726b2d546f702532305261746564253230506c75732d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/freelancers/~016dd1767321100e21)

100% Job Success - 10+ Years Magento Experience Adobe Certified - Hyva Specialist

### Panth Infotech Agency

[](#panth-infotech-agency)

**Magento Development Team**

[![Visit Agency](https://camo.githubusercontent.com/bbf04bdd2aff502082508568ec42ace3a7475c98756f596e2013056c89726ed6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56697369742532304167656e63792d50616e7468253230496e666f746563682d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/agencies/1881421506131960778/)

Custom Modules - Theme Design - Migrations Performance - SEO - Adobe Commerce Cloud

**Visit our website:** [kishansavaliya.com](https://kishansavaliya.com) | **Get a quote:** [kishansavaliya.com/get-quote](https://kishansavaliya.com/get-quote)

---

Table of Contents
-----------------

[](#table-of-contents)

- [Who Is It For](#who-is-it-for)
- [Key Features](#key-features)
- [Screenshots](#screenshots)
- [Compatibility](#compatibility)
- [Installation](#installation)
- [Configuration](#configuration)
- [Managing Sitemap Profiles](#managing-sitemap-profiles)
- [How It Works](#how-it-works)
- [CLI](#cli)
- [Cron](#cron)
- [FAQ](#faq)
- [Support](#support)
- [About Panth Infotech](#about-panth-infotech)
- [Quick Links](#quick-links)

---

Who Is It For
-------------

[](#who-is-it-for)

- **Stores with large catalogs** where Google's 50,000 URL and 50 MB per-file limits mean the native sitemap silently drops URLs. Panth XML Sitemap splits into as many shards as needed.
- **Multi-language stores** that need `hreflang` alternate links inside every sitemap entry so search engines serve the right language version to each audience.
- **Stores with rich media** that want product images and videos indexed by Google Image and Video Search.
- **Merchants who want fast nightly rebuilds** because the delta tracker skips shards whose source entities have not changed since the last run.
- **Development teams** that need a CLI command to regenerate sitemaps in CI pipelines after deploys.

---

Key Features
------------

[](#key-features)

### Per-Store Sitemap Profiles

[](#per-store-sitemap-profiles)

- **One profile per store view** with its own contributor list, shard size, gzip flag, hreflang flag, cron schedule, and active toggle.
- **Profile grid in admin** at Admin - Panth Infotech - XML Sitemap - Sitemap Profiles with inline Edit, Generate Now, View Sitemap, and Delete actions.
- **Mass actions**: Enable, Disable, Regenerate Now, and Delete for multiple profiles at once.
- **Base URL override** so CDN domains or alternate apex hosts are handled correctly per store.

### Seven Entity Contributors

[](#seven-entity-contributors)

- **Product contributor** walks enabled, visible products, reads canonical URLs from `url_rewrite`, and emits ``, ``, and `` per URL.
- **Category contributor** walks active categories at the store's root, respecting the store's root category.
- **CMS page contributor** includes all active CMS pages, excluding the homepage, no-route, cookie notice, and any admin-configured extra identifiers.
- **Landing page contributor** auto-enabled when Panth Landing Pages module is present; self-disables otherwise.
- **Blog contributor** auto-detects supported third-party blog modules and self-disables when none are installed.
- **Video contributor** emits `` blocks for products with external video media gallery items.
- **Additional links contributor** reads a free-form textarea of custom URLs (one per line) for campaign pages or any URL that does not live in a content table.

### Hreflang, Image &amp; Video Tags

[](#hreflang-image--video-tags)

- **Hreflang alternate tags** add `` entries per URL when the store has two or more locale codes, including `x-default`.
- **Image tags** add `` blocks with image URL, title, and caption for every gallery image on a product URL.
- **Video tags** add `` blocks (title, description, content URL, thumbnail, duration) for products with associated video media.
- **Configurable image source**: choose base image, small image, or thumbnail for sitemap entries.

### Auto-Sharding and Gzip

[](#auto-sharding-and-gzip)

- **Auto-split at a configurable URL cap** (default 45,000, well under Google's 50,000 hard limit). Shards are named `sitemap-1.xml`, `sitemap-2.xml`, and so on.
- **Early close at 45 MB uncompressed** to stay under the 50 MB per-file cap.
- **Gzip compression** writes shards as `.xml.gz` with `Content-Encoding: gzip`. A typical catalog compresses about 10:1, so a 45 MB shard ships as roughly 4.5 MB.
- **XSL stylesheet** can be injected into every shard so the sitemap renders as a human-readable table in a browser while remaining a valid XML file for crawlers.

### Search-Engine Ping and Delta Tracking

[](#search-engine-ping-and-delta-tracking)

- **Ping Google and Bing** after every successful write. Each engine can be enabled or disabled independently per profile.
- **Delta tracker** records `last_generated_at` per entity in `panth_seo_sitemap_shard`. The next cron run skips shards whose source entities have not changed. Typical nightly time drops from 90 seconds to 5 seconds on a 50k-product store.
- **Force flag** on the CLI bypasses the delta tracker for a full rebuild when needed.

### Async Queue, Cron, and CLI

[](#async-queue-cron-and-cli)

- **Async AMQP shard queue** dispatches each shard to the `panth_xml_sitemap.shard` topic when enabled; a worker pool builds shards in parallel.
- **Nightly cron** at `0 2 * * *` by default; each profile can override with its own cron expression.
- **CLI command** `panth:seo:sitemap:generate` for manual and CI-driven runs, with `--profile-id` and `--force` flags.
- **Frontend endpoint** `/panth-sitemap.xml` served by the module controller via a `url_rewrite` row installed at setup time.

### Exclude Flags

[](#exclude-flags)

- **Exclude out-of-stock products** to avoid indexing unavailable items.
- **Exclude NOINDEX pages** to keep the sitemap consistent with your robots meta directives.
- **Per-profile excluded CMS identifiers** textarea to drop specific CMS pages from the CMS shard.

---

Screenshots
-----------

[](#screenshots)

### Live walkthrough

[](#live-walkthrough)

End-to-end admin flow: open the XML Sitemap config, toggle fields, edit the default profile, flip entity types and priorities, run Generate Now, and click View Sitemap.

[![Panth XML Sitemap demo](docs/images/demo.gif)](docs/images/demo.gif)

### System configuration

[](#system-configuration)

**Stores - Configuration - Panth Extensions - XML Sitemap** with six collapsible groups (General, Generation, Hreflang, Images &amp; Video, Search Engine Ping, Additional Links).

[![Admin configuration](docs/images/admin-config.png)](docs/images/admin-config.png)

### Sitemap Profiles grid

[](#sitemap-profiles-grid)

One row per profile with columns for ID, Name, Store View, Entity Types, Active, URL Count, File Count, Last Generated, and per-row actions.

[![Admin grid](docs/images/admin-grid.png)](docs/images/admin-grid.png)

### Edit Sitemap Profile form

[](#edit-sitemap-profile-form)

Eight collapsible sections covering every profile setting, with a read-only Generation Status block populated after each run.

[![Edit profile form](docs/images/admin-edit.png)](docs/images/admin-edit.png)

### XSL rendered sitemap

[](#xsl-rendered-sitemap)

The XSL stylesheet renders a human-readable table in the browser while the response stays valid XML for crawlers.

[![XSL rendered sitemap](docs/images/sitemap-xsl-preview.png)](docs/images/sitemap-xsl-preview.png)

---

Compatibility
-------------

[](#compatibility)

RequirementVersions SupportedMagento Open Source2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8Adobe Commerce2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8Adobe Commerce Cloud2.4.4 to 2.4.8PHP8.1.x, 8.2.x, 8.3.x, 8.4.xHyva Theme1.0+ (compatible; no frontend JS changes)Luma ThemeNative supportRequired Dependency`mage2kishan/module-core` (free)---

Installation
------------

[](#installation)

### Composer Installation (Recommended)

[](#composer-installation-recommended)

```
composer require mage2kishan/module-xml-sitemap
bin/magento module:enable Panth_Core Panth_XmlSitemap
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
```

### Manual Installation via ZIP

[](#manual-installation-via-zip)

1. Download the latest release from [Packagist](https://packagist.org/packages/mage2kishan/module-xml-sitemap) or from the [product page](https://kishansavaliya.com/magento-2-xml-sitemap.html).
2. Extract it to `app/code/Panth/XmlSitemap/` in your Magento install.
3. Make sure `Panth_Core` is installed too (required dependency).
4. Run the commands above starting from `bin/magento module:enable`.

### Verify Installation

[](#verify-installation)

```
bin/magento module:status Panth_XmlSitemap
# Expected: Module is enabled
```

After install, open:

```
Admin - Panth Infotech - XML Sitemap - Sitemap Profiles

```

---

Configuration
-------------

[](#configuration)

Go to **Admin - Panth Infotech - XML Sitemap - Configuration** (or **Stores - Configuration - Panth Extensions - XML Sitemap**).

Every setting resolves at store-view scope, so each store can have a different configuration.

### General

[](#general)

SettingGroupDefaultDescriptionEnabledGeneralYesMaster toggle. When No, the frontend controller returns 404 and the cron is a no-op.Homepage OptimizationGeneralYesEmits the homepage URL with priority 1.0 and daily change frequency.### Generation

[](#generation)

SettingGroupDefaultDescriptionURLs per ShardGeneration45000Maximum number of URLs per sitemap file before a new shard is opened. Range: 1000 to 50000.Gzip OutputGenerationYesWrites shards as `.xml.gz` with `Content-Encoding: gzip`.Enable XSL StylesheetGenerationNoAdds an `` processing instruction so the sitemap renders as a table in browsers.Exclude Out-of-Stock ProductsGenerationNoOmits products with zero saleable quantity.Exclude NOINDEX PagesGenerationNoOmits pages marked as noindex, keeping the sitemap consistent with robots directives.### Hreflang

[](#hreflang)

SettingGroupDefaultDescriptionInclude Hreflang AlternatesHreflangYesAdds `` entries per URL for multi-language stores.### Images &amp; Video

[](#images--video)

SettingGroupDefaultDescriptionInclude Image ExtensionImages &amp; VideoYesAdds `` blocks per product URL for Google Image Search indexing.Product Image Source for SitemapImages &amp; Videobase\_imageWhich product image role to use in image sitemap entries (base image, small image, or thumbnail).Include Video ExtensionImages &amp; VideoNoAdds `` blocks per product URL that has associated video media.### Search Engine Ping

[](#search-engine-ping)

SettingGroupDefaultDescriptionPing Google on RebuildSearch Engine PingYesPOSTs to Google's ping endpoint after each successful sitemap write.Ping Bing on RebuildSearch Engine PingYesPOSTs to Bing's ping endpoint after each successful sitemap write.### Additional Links

[](#additional-links)

SettingGroupDefaultDescriptionAdditional Links (one URL per line)Additional Links(empty)Extra URLs to include that are not auto-discovered (campaign pages, custom routes, etc.).Additional Links Change FrequencyAdditional LinksweeklyChange frequency emitted for additional link entries.Additional Links PriorityAdditional Links0.5Priority emitted for additional link entries. Range: 0.0 to 1.0.---

Managing Sitemap Profiles
-------------------------

[](#managing-sitemap-profiles)

Open **Admin - Panth Infotech - XML Sitemap - Sitemap Profiles**.

Each profile row is scoped to a single store view and carries its own settings for contributor list, shard size, gzip, hreflang, images, video, cron schedule, and active flag.

### Key Profile Fields

[](#key-profile-fields)

FieldDescriptionStore ViewThe store view this profile applies to. One profile per store.Base URLAbsolute URL used as the `` prefix. Defaults to the store's base URL. Override for CDN or custom domains.Max URLs per FilePer-profile override of the global shard cap. Range: 100 to 50000.Include ProductsRun the product contributor for this profile.Include CategoriesRun the category contributor for this profile.Include CMS PagesRun the CMS page contributor for this profile.Include Landing PagesRun the landing page contributor (auto-skipped if Panth Landing Pages is not installed).Include BlogRun the blog contributor (auto-skipped if no supported blog module is installed).Enable HreflangAdd hreflang alternate entries per URL.Enable ImagesAdd `` blocks per product URL.Enable VideosAdd `` blocks per product URL with video media.Enable GzipWrite shards as `.xml.gz`.Ping GooglePOST to Google's ping endpoint on successful write.Ping BingPOST to Bing's ping endpoint on successful write.Enable QueueDispatch each shard to the AMQP topic for parallel worker-based generation.Enable DeltaSkip shards whose source entities have not changed since the last run.Cron ScheduleStandard cron expression for this profile (default `0 2 * * *`).ActiveInactive profiles are skipped by cron and CLI.---

How It Works
------------

[](#how-it-works)

1. **`Setup\Patch\Data\InstallSitemapRewrite`** installs a `url_rewrite` row that maps `/panth-sitemap.xml` to the module controller at setup time. No manual DB work is needed.
2. A **Sitemap Profile** defines which entities to include, how to split shards, and when to regenerate. Each profile is scoped to one store view.
3. **`Model\Sitemap\Builder`** is the orchestrator. It resolves the store scope, iterates registered contributors in a fixed order, pipes each URL through `ShardWriter`, closes shards at the configured threshold, writes the top-level `sitemap_index.xml`, saves run metadata to the delta table, and pings search engines on success.
4. **Contributors** are plugged in through `di.xml` and can be enabled or disabled per profile. Each contributor queries its entity table, resolves canonical URLs from `url_rewrite`, and yields URL objects with ``, ``, ``, plus optional hreflang, image, and video blocks.
5. **`ShardWriter`** writes one XML file at a time, closing and opening a new shard when the URL count reaches the cap or the uncompressed size would exceed 45 MB.
6. **`DeltaTracker`** records a `last_generated_at` timestamp per entity type after each successful run. The next run compares these timestamps and skips whole contributor shards that have not changed.
7. **`SearchEnginePinger`** POSTs to Google and Bing after a successful build with a 5-second timeout and one retry on server errors.
8. **`Cron\Rebuild`** fires on the configured schedule. For async-enabled profiles it dispatches shard jobs to the AMQP queue; for synchronous profiles it calls `Builder::generate()` directly.
9. **`Console\GenerateCommand`** exposes `panth:seo:sitemap:generate` for manual and CI-driven runs.

### Sitemap index shape

[](#sitemap-index-shape)

```

    https://your-store.test/panth-sitemap-products-1.xml.gz
    2026-04-21T02:00:05+00:00

    https://your-store.test/panth-sitemap-categories-1.xml.gz
    2026-04-21T02:00:08+00:00

```

### Individual shard shape

[](#individual-shard-shape)

```

    https://your-store.test/example-product.html
    2026-04-20T13:22:14+00:00
    daily
    0.8

      https://your-store.test/media/catalog/product/e/x/example.jpg
      Example Product

```

---

CLI
---

[](#cli)

```
# Generate every active profile
bin/magento panth:seo:sitemap:generate

# Generate a single profile by ID
bin/magento panth:seo:sitemap:generate --profile-id=3

# Force a full rebuild, bypassing the delta tracker
bin/magento panth:seo:sitemap:generate --profile-id=3 --force

# Quiet mode (suppress per-contributor progress, emit only the final summary)
bin/magento panth:seo:sitemap:generate --quiet
```

Exit codes: `0` on success, `1` on fatal error, `2` on partial success (one contributor failed, others completed).

---

Cron
----

[](#cron)

The default cron job runs at `0 2 * * *` (02:00 daily):

```
bin/magento cron:list | grep panth_xml_sitemap
# panth_xml_sitemap_rebuild   default   0 2 * * *
```

Each profile can override the schedule with its own cron expression. The cron runner only dispatches a profile when its schedule matches the current run window and its Active flag is Yes.

When any profile has the async queue enabled, start the consumer as a long-running process:

```
bin/magento queue:consumers:start panth_xml_sitemap_consumer --single-thread
```

---

FAQ
---

[](#faq)

### Does this replace Magento's native sitemap?

[](#does-this-replace-magentos-native-sitemap)

No. Panth XML Sitemap uses its own URL `/panth-sitemap.xml` (served by the module controller via a `url_rewrite` row), so Magento's native sitemap at its existing path is unaffected. You can run both during a transition period and then remove the native one when ready.

### Why would I use this instead of the native sitemap?

[](#why-would-i-use-this-instead-of-the-native-sitemap)

The native Magento sitemap is a single blob written to disk on every cron run, re-crawling every product each time. It has no hreflang, no sharding (so large catalogs silently drop URLs past 50,000), no image or video tags, no incremental regeneration, and no ping-on-write. Panth XML Sitemap solves all of those gaps.

### Will it work on my Hyva store?

[](#will-it-work-on-my-hyva-store)

Yes. The sitemap pipeline is entirely backend (PHP). There is no frontend JavaScript, so it works with Hyva, Luma, and any custom theme.

### How do I see if the sitemap was generated correctly?

[](#how-do-i-see-if-the-sitemap-was-generated-correctly)

Open **Admin - Panth Infotech - XML Sitemap - Sitemap Profiles**, find your profile row, and click "View Sitemap". You can also visit `/panth-sitemap.xml` directly in the browser and the XSL stylesheet (if enabled) renders it as a readable table.

### Hreflang tags are not appearing in the shards. Why?

[](#hreflang-tags-are-not-appearing-in-the-shards-why)

Hreflang only fires when the store has two or more store views with different locale codes. A single-locale store has no alternates to emit, so the contributor is a no-op. Confirm you have at least two locale codes configured under Stores - Store Views.

### How does delta tracking work?

[](#how-does-delta-tracking-work)

After each successful run the module saves a `last_generated_at` timestamp per entity type in `panth_seo_sitemap_shard`. On the next cron run, the builder compares those timestamps against the entity tables and skips contributors whose data has not changed. Run the CLI with `--force` to bypass delta tracking and do a full rebuild.

### The sitemap returns a 404. How do I fix it?

[](#the-sitemap-returns-a-404-how-do-i-fix-it)

Run `bin/magento setup:upgrade` to have the `InstallSitemapRewrite` (or `RefreshSitemapRewrite`) patch install or repair the `url_rewrite` row. Then flush the config and full-page cache. Also check that the module is enabled and that the master toggle in configuration is set to Yes.

### Can I add custom URLs that are not product, category, or CMS pages?

[](#can-i-add-custom-urls-that-are-not-product-category-or-cms-pages)

Yes. Use the Additional Links textarea in configuration (**Stores - Configuration - Panth Extensions - XML Sitemap - Additional Links**) or add a Custom Links section to a profile. Enter one URL per line.

### Does it support async generation for large stores?

[](#does-it-support-async-generation-for-large-stores)

Yes. Enable the queue flag on any profile and start the consumer `bin/magento queue:consumers:start panth_xml_sitemap_consumer`. Each shard is dispatched to the `panth_xml_sitemap.shard` AMQP topic and built in parallel.

---

Support
-------

[](#support)

ChannelContactProduct Page[kishansavaliya.com/magento-2-xml-sitemap.html](https://kishansavaliya.com/magento-2-xml-sitemap.html)EmailWebsite[kishansavaliya.com](https://kishansavaliya.com)WhatsApp+91 84012 70422GitHub Issues[github.com/mage2sk/module-xml-sitemap/issues](https://github.com/mage2sk/module-xml-sitemap/issues)Upwork (Top Rated Plus)[Hire Kishan Savaliya](https://www.upwork.com/freelancers/~016dd1767321100e21)Upwork Agency[Panth Infotech](https://www.upwork.com/agencies/1881421506131960778/)Response time: 1-2 business days.

### Need Custom Magento Development?

[](#need-custom-magento-development)

Looking for **custom Magento module development**, **Hyva theme work**, **store migrations**, or **performance tuning**? Get a free quote in 24 hours:

 [ ![Get a Free Quote](https://camo.githubusercontent.com/0d9512dc4f89ef40179e9f650fd0786b6bc846d289ab2cb04a223a43f2833eeb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f254630253946253932254143253230476574253230612532304672656525323051756f74652d6b697368616e736176616c6979612e636f6d2532466765742d2d71756f74652d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/get-quote)

 [ ![Hire on Upwork](https://camo.githubusercontent.com/fad56e8be7896e39593f090cd2ed32e6bf86b4b6e75974cf292aee99d45f5077/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652532304b697368616e2d546f702532305261746564253230506c75732d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465) ](https://www.upwork.com/freelancers/~016dd1767321100e21) [ ![Visit Agency](https://camo.githubusercontent.com/fdf45a9d937d72b896f5e2557337d47efebc0e06b7ad4d4c162c0a64375a62fa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56697369742d50616e7468253230496e666f746563682532304167656e63792d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465) ](https://www.upwork.com/agencies/1881421506131960778/) [ ![View Product Page](https://camo.githubusercontent.com/0078c634ca9477a8edf0356c2d71a8560c414c50a5587cd9587acda13bb9ca75/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5669657725323050726f64756374253230506167652d6d6167656e746f2d2d322d2d786d6c2d2d736974656d61702d3044393438383f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/magento-2-xml-sitemap.html)

---

About Panth Infotech
--------------------

[](#about-panth-infotech)

Built and maintained by **Kishan Savaliya** ([kishansavaliya.com](https://kishansavaliya.com)), a **Top Rated Plus** Magento developer on Upwork with 10+ years of eCommerce experience.

**Panth Infotech** is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on our [Magento extensions page](https://kishansavaliya.com/magento-extensions.html) or on [Packagist](https://packagist.org/packages/mage2kishan/).

---

Quick Links
-----------

[](#quick-links)

ResourceLink**Product Page**[magento-2-xml-sitemap.html](https://kishansavaliya.com/magento-2-xml-sitemap.html)**Packagist**[mage2kishan/module-xml-sitemap](https://packagist.org/packages/mage2kishan/module-xml-sitemap)**GitHub**[mage2sk/module-xml-sitemap](https://github.com/mage2sk/module-xml-sitemap)**Website**[kishansavaliya.com](https://kishansavaliya.com)**Free Quote**[kishansavaliya.com/get-quote](https://kishansavaliya.com/get-quote)**Upwork (Top Rated Plus)**[Hire Kishan Savaliya](https://www.upwork.com/freelancers/~016dd1767321100e21)**Upwork Agency**[Panth Infotech](https://www.upwork.com/agencies/1881421506131960778/)**Email****WhatsApp**+91 84012 70422---

 **Ready to give search engines a complete, well-structured sitemap?**
 [ ![See XML Sitemap](https://camo.githubusercontent.com/3b133d71ae4947fc21a7e3b03edd910d61d9ea21f16c35308b81eb9c9ee9f1e2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f254630253946253941253830253230536565253230584d4c253230536974656d61702532302545322538362539322d50726f647563742532305061676525323025323625323044657461696c732d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/magento-2-xml-sitemap.html)

---

**SEO Keywords:** magento 2 xml sitemap, magento 2 sitemap extension, magento 2 sitemap module, magento sharded sitemap, magento sitemap sharding, magento hreflang sitemap, magento image sitemap, magento image tags sitemap, magento video sitemap, magento video tags sitemap, magento sitemap gzip, magento sitemap compression, magento sitemap search engine ping, magento sitemap cron, magento sitemap cli, magento sitemap generator, magento delta sitemap, magento incremental sitemap, hyva xml sitemap, hyva sitemap extension, luma xml sitemap, magento 2 sitemap index, magento 2 multi-store sitemap, magento 2 sitemap profile, magento 2.4.8 sitemap, php 8.4 sitemap, mage2kishan xml sitemap, panth xml sitemap, panth infotech, hire magento developer, top rated plus upwork, kishan savaliya magento, custom magento development

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance89

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Recently: every ~9 days

Total

24

Last Release

36d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/343e344aa298f189db888b32d62f9202d31ced1a5ea23411850a63dc4a30299c?d=identicon)[kishansavaliya](/maintainers/kishansavaliya)

---

Top Contributors

[![KishanSavaliya](https://avatars.githubusercontent.com/u/16853223?v=4)](https://github.com/KishanSavaliya "KishanSavaliya (24 commits)")

---

Tags

Sitemapseomagento2magento2 modulexml-sitemaphyvahreflangpanth

### Embed Badge

![Health badge](/badges/mage2kishan-module-xml-sitemap/health.svg)

```
[![Health](https://phpackages.com/badges/mage2kishan-module-xml-sitemap/health.svg)](https://phpackages.com/packages/mage2kishan-module-xml-sitemap)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)[angeo/module-llms-txt

Magento 2 module for AI Engine Optimization (AEO). Generates spec-compliant llms.txt and llms-full.txt per llmstxt.org standard, plus streaming JSONL for vector indexing. Multi-store, multi-website, CLI, cron, async admin UI, Page Builder-aware sanitization, customer-group pricing, atomic writes, ETag/Cache-Control, .md mirrors.

111.1k](/packages/angeo-module-llms-txt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
