smaex/sitemap 1.0.0

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

Type

magento2-module

License

MIT

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Magento 2: Sitemap

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

Intro

Providing search engines with a sitemap in a machine readable format 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, including the home page, 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 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 to the home page to avoid duplicate pages.

Screenshot: Magento admin interface for generating sitemaps.

How to install

Simply require the extension via Composer.

$ composer require smaex/sitemap ^1.0

Finally, enable the module via Magento’s CLI.

$ magento module:enable Smaex_Sitemap

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.

We’re hiring!

We’re currently looking for interested ~~masochists~~ PHP & Magento developers to join our small, friendly and experienced Magento Team in Munich. Just drop me a line via [email protected]