Credit and Thanks
Thank you to Mark Burdett for creating and maintaining this module.
About the Hreflang module
The Hreflang module automatically adds hreflang tags to your pages. Search engines reference the alternate hreflang tag to serve the correct language or regional URL in search results which is important for multilingual websites.
In Drupal, the Core Content Translation module does add hreflang tags to translated entity pages. However, hreflang tags should be added to all pages, even untranslated ones. This module manages this for you.
Install and Enable the Hreflang module
- Install the Hreflang module on your server. (See this page for more instructions on installing modules.)
- Go to the Extend page: Click Manage > Extend (Coffee: “extend”) or visit https://<yourDrupalsite.dev>/admin/modules.
Select the checkbox next to Hreflang and click the Install button at the bottom of the page.
There are no permissions to set or further settings to change.
As you can see from the above screenshot in the example website, the hreflang for each different language version of the site has been set by the Hreflang module.
Did you like this walkthrough? Please tell your friends about it!