PHPackages                             viraxpress/sitemap-splitter - 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. viraxpress/sitemap-splitter

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

viraxpress/sitemap-splitter
===========================

ViraXpress Sitemap Splitter

1.0.0(2mo ago)00Apache-2.0PHPPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Apr 10Pushed todayCompare

[ Source](https://github.com/viraxpress/SitemapSplitter)[ Packagist](https://packagist.org/packages/viraxpress/sitemap-splitter)[ RSS](/packages/viraxpress-sitemap-splitter/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ViraXpress Sitemap Splitter
===========================

[](#viraxpress-sitemap-splitter)

Description
-----------

[](#description)

`ViraXpress_SitemapSplitter` enhances the default Magento sitemap by splitting it into separate files per content type — categories, CMS pages, and products. It generates a sitemap index file referencing all individual sitemaps, improving crawl efficiency and compliance with search engine size limits.

This approach improves search engine crawling efficiency, reduces memory usage during sitemap generation, and ensures compliance with sitemap size limits imposed by search engines like Google.

Features
--------

[](#features)

- Generates separate sitemap files for categories, CMS pages, and products
- Automatically splits product sitemaps into multiple files based on a configurable URL limit (default: 40,000)
- Optionally includes product images in Google image sitemap format
- Exclude specific category URLs from the sitemap
- Exclude specific CMS page URLs from the sitemap
- Exclude out-of-stock product URLs from the sitemap
- Select which entities (Products, Categories, CMS Pages) to include per sitemap record
- Multi-store support — generates sitemaps independently per store view
- CLI command for manual generation: `bin/magento viraxpress:sitemap:generate`
- Comprehensive logging for monitoring and troubleshooting

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

[](#compatibility)

- Magento 2.4.x

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

[](#installation)

1. Install the extension via Composer:

    ```
    composer require viraxpress/sitemap-splitter
    ```
2. Run the following commands from your Magento root directory:

    ```
    php bin/magento module:enable ViraXpress_SitemapSplitter
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    php bin/magento cache:flush
    ```

### Step 3: Configuration

[](#step-3-configuration)

Navigate to **Stores &gt; Configuration &gt; Catalog &gt; XML Sitemap**.

### Categories Options

[](#categories-options)

- **Frequency / Priority**: Standard sitemap settings for category URLs
- **Exclude Category URLs**: Select specific categories to exclude from the sitemap

### Products Options

[](#products-options)

- **Frequency / Priority**: Standard sitemap settings for product URLs
- **Add Images into Sitemap**: Include product images in Google image sitemap format
- **Exclude Out of Stock product URLs**: Set to `Yes` to exclude out-of-stock products

### CMS Pages Options

[](#cms-pages-options)

- **Frequency / Priority**: Standard sitemap settings for CMS page URLs
- **Exclude CMS Pages URLs**: Select specific CMS pages to exclude from the sitemap

### ViraXpress Sitemap Splitter

[](#viraxpress-sitemap-splitter-1)

- **Enable Sitemap Splitter**: Set to `Yes` to activate split sitemap generation
- **Product URLs Per Sitemap**: Maximum product URLs per file (default: 40000)
- **Include Product Images**: Include product images in sitemap
- **Sitemap Path**: Path relative to Magento root where sitemaps are stored (default: `pub/media/sitemap`)

### Step 4: Generate Sitemaps

[](#step-4-generate-sitemaps)

#### Manual Generation via CLI

[](#manual-generation-via-cli)

```
php bin/magento viraxpress:sitemap:generate [--store=STORE_ID]
```

Replace `STORE_ID` with the specific store ID if you want to generate sitemaps for a particular store. Omit this option to generate sitemaps for all stores.

### Step 5: Verify Installation

[](#step-5-verify-installation)

1. Check that the sitemap index file is generated at the configured path (e.g., `pub/media/sitemap/sitemap.xml`).
2. Submit the sitemap index URL to search engines (Google Search Console, Bing Webmaster Tools, etc.).

Configuration Options
---------------------

[](#configuration-options)

OptionDescriptionDefault ValueEnable Sitemap SplitterEnables/disables the extensionNoProduct URLs Per SitemapMaximum product URLs per file40000Include Product ImagesInclude product images in sitemapNoSitemap PathPath for sitemap filespub/media/sitemapFile Structure
--------------

[](#file-structure)

After generation, the following files are created:

- `sitemap.xml` - Sitemap index file
- `sitemap-categories.xml` - Category URLs
- `sitemap-pages.xml` - CMS page URLs
- `sitemap-products-1.xml`, `sitemap-products-2.xml`, etc. - Product URLs (split as needed)
- `sitemap-blog.xml` - Blog post URLs (if enabled)

Troubleshooting
---------------

[](#troubleshooting)

- **Sitemaps not generating**: Check that the extension is enabled in configuration and that the sitemap path is writable.
- **Memory issues**: Reduce the product limit per sitemap or increase PHP memory limits.
- **Missing sitemaps**: Ensure that the required Magento modules (Sitemap, Catalog, CMS) are enabled.

Support
-------

[](#support)

For support, please contact ViraXpress at  or refer to the license agreement.

License
-------

[](#license)

This extension is licensed under the ViraXpress license agreement. See  for details.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance95

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

61d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfa4cf8adc10a78f5b538cdf399be5d1059c4cfecf5ca5e38e44351bcaf84367?d=identicon)[viraxpress](/maintainers/viraxpress)

---

Top Contributors

[![viraxpress](https://avatars.githubusercontent.com/u/179798477?v=4)](https://github.com/viraxpress "viraxpress (1 commits)")

### Embed Badge

![Health badge](/badges/viraxpress-sitemap-splitter/health.svg)

```
[![Health](https://phpackages.com/badges/viraxpress-sitemap-splitter/health.svg)](https://phpackages.com/packages/viraxpress-sitemap-splitter)
```

PHPackages © 2026

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