smaex / sitemap
Adds the home page to the XML sitemap in Magento 2.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ^7.1
- magento/framework: ^102.0
- magento/module-cms: ^103.0
- magento/module-sitemap: ^100.3
- magento/module-store: ^101.0
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2023-06-04 09:21:21 UTC
README
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.
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.
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 j.scherbl@techdivision.com