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

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

smaex/sitemap
=============

Adds the home page to the XML sitemap in Magento 2.

1.0.0(7y ago)311MITPHPPHP ^7.1

Since May 26Pushed 7y agoCompare

[ Source](https://github.com/jensscherbl/sitemap)[ Packagist](https://packagist.org/packages/smaex/sitemap)[ RSS](/packages/smaex-sitemap/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (2)Used By (0)

Magento 2: Sitemap
==================

[](#magento-2-sitemap)

Adds the home page to the [XML sitemap](https://support.google.com/webmasters/answer/183668) in [Magento 2](https://github.com/magento/magento2).

Intro
-----

[](#intro)

Providing search engines with a sitemap in a [machine readable format](https://www.sitemaps.org/protocol.html) is a SEO best practice for many years now, and Magento already offers such functionality out of the box.

Unfortunately, Magento also [excludes so called utility CMS pages](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Sitemap/Model/ResourceModel/Cms/Page.php#L106), [including the home page](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Cms/Model/GetUtilityPageIdentifiers.php#L53), from the generated XML sitemaps, which is considered a big mistake among SEO experts.

This extension explicitly adds the store’s home page when generating an XML sitemap, using the store’s [base URL](https://docs.magento.com/m2/ce/user_guide/stores/store-urls.html) as configured. On a side note, the home page can be accessed with and without its URL key in Magento, so the extension also adds a [canonical tag](https://support.google.com/webmasters/answer/139066) to the home page to avoid duplicate pages.

[![Screenshot: Magento admin interface for generating sitemaps.](https://user-images.githubusercontent.com/1640033/58386314-26bf4200-7ffe-11e9-94f6-70dfe80efccd.png)](https://user-images.githubusercontent.com/1640033/58386314-26bf4200-7ffe-11e9-94f6-70dfe80efccd.png)

How to install
--------------

[](#how-to-install)

Simply require the extension via [Composer](https://getcomposer.org).

```
$ composer require smaex/sitemap ^1.0
```

Finally, enable the module via [Magento’s CLI](https://devdocs.magento.com/guides/v2.3/install-gde/install/cli/install-cli-subcommands-enable.html).

```
$ magento module:enable Smaex_Sitemap
```

How to use
----------

[](#how-to-use)

The extension works pretty much out of the box without further configuration. However, it also provides a new system configuration for fine-tuning.

[![Screenshot: Magento admin interface for generating sitemaps.](https://user-images.githubusercontent.com/1640033/58386461-68e98300-8000-11e9-991e-802ace2b99d3.png)](https://user-images.githubusercontent.com/1640033/58386461-68e98300-8000-11e9-991e-802ace2b99d3.png)

We’re hiring!
-------------

[](#were-hiring)

We’re currently looking for interested masochists **PHP &amp; Magento developers** to join our small, friendly and experienced Magento Team **in Munich**. Just drop me a line via

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

2591d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

magentophpseositemapmagentoSitemapseo

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)

PHPackages © 2026

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