brunocanada / hreflang
This Magento 2 multi store extension adds the alternate hreflang tag for: Pages, Product and Category.
Installs: 49 518
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 7
Forks: 12
Type:magento2-module
This package is auto-updated.
Last update: 2025-04-04 12:14:43 UTC
README
This Magento 2 multi store extension adds the alternate hreflang tag for: Pages, Product and Category.
Table of Contents
About
This extension solves a SEO specific problem of content duplication for Google and other search engines.
It automatically adds the HREFLANG tag to pages, product and category of Magento considering your multi store structure.
Google Hreflang reference: https://support.google.com/webmasters/answer/189077?hl=en
MOZ Hreflang reference: https://moz.com/learn/seo/hreflang-tag
Getting Started
Prerequisites
PHP 7+
Magento 2
Zend Framework
Composer 1.10.16
Installing via Composer
- Access your Magento 2 root directory
- Run
composer require brunocanada/hreflang
- Double-check if it is installed and enabled, run
bin/magento module:status BrunoCanada_HrefLang
Manual Instalation
-
Download this package;
-
Create the following folder inside your Magento 2 installation
app/code/BrunoCanada/HrefLang
-
Paste the files of this package inside the created folder (step 2)
-
Run the following command inside your Magento 2 installation:
$ bin/magento setup:upgrade
Module Management
- Enable module:
bin/magento module:enable BrunoCanada_HrefLang
- Disable module:
bin/magento module:disable BrunoCanada_HrefLang