Skip to content

Improved SEO for international Magento stores with inclusion of 'alternate' links to the Magento head. Choose either language only, or language and region for your hreflang format via the Magento admin.

Notifications You must be signed in to change notification settings

benleah/Magento-alternate-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

##Alternate Links for Magento

###Overview

  • Adds alternate links <link rel="alternate" /> to the Magento head.
  • Automatically detects alternative store views.
  • Choose from the Google recommended ISO 639-1 or ISO 3166-1 Alpha 2 hreflang="" formats.

Many Magento websites serve users from around the world with content translated or targeted to users in a certain region, however without alternate links Google may not serve the right content to the right region — or worse — interpret multiple store views as duplicate content. Google uses the rel="alternate" and hreflang="x" attributes to serve the correct language or regional URL in Search results.

Easily add alternate links to the head of international Magento stores to help Google better understand which content to serve to which country, avoiding duplicate content issues where the same products and CMS pages are available in multiple store views.

###The <head>

Alternate Links for Magento adds an alternate link to the Magento head for each alternate store view, specifying an hreflang="" value automatically assigned based on each store’s locale configuration (SYSTEM > CONFIGURATION > WEB > LOCALE OPTIONS).

<link rel="alternate" hreflang="xx-XX" href="http://www.yourmagentostore.com/en/any-url/" />

The value of the hreflang attribute can be language only (in ISO 639-1 format, e.g. 'en') or optionally include the region (in ISO 3166-1 Alpha 2 format, e.g. 'en-GB'). To find out more about language and region formats, click here.

###Basic Setup

  1. Install the module.
  2. Clear the Magento Cache then log out of admin and back in.
  3. Make sure your store view's language and country configurations are et correctly in SYSTEM > CONFIGURATION > GENERAL.
  4. Enable the module in Magento admin (SYSTEM > CONFIGURATION > WEB > ALTERNATE LINKS). Set Enable to 'Yes'.
  5. Select your desired hreflang format using the Hreflang Format dropdown option.

About

Improved SEO for international Magento stores with inclusion of 'alternate' links to the Magento head. Choose either language only, or language and region for your hreflang format via the Magento admin.

Resources

Stars

Watchers

Forks

Packages

No packages published