I have a multilingual website currently on localhost. I want to add the alternate links to each page like this: rel="alternate" hreflang="x". How do i do that? What about the canonical urls? I have already installed SEO suite module enabled.


You might want to try Menu attributes module.

This simple module allows you to specify some additional attributes for menu items such as id, name, class, style, and rel.
The module currently allows you to set the following attributes for each menu item:
- Id
- Name
- Target
- Rel
- Class
- Style
- Accesskey

  • What happens when my main menu is a translatable block with my html code inside??? – paranod Aug 3 '12 at 7:36

You can use Meta Tags module for canonical links.

The Meta tags module allows you to automatically provide structured metadata, aka "meta tags", about your website. In the context of search engine optimization, when people refer to meta tags, they are usually referring to the meta description tag and the meta keywords tag that may help improve the rankings and display of your site in search engine results.

Meta tags have additional uses like the Open Graph Protocol used by Facebook, specifying the canonical location of content across multiple URLs or domains.

  • Hmm i see. Would i have to add the canonical url my self for each page and for each language? or this can be done automatically? Maybe using the clean urls i have already set up ? – paranod Aug 3 '12 at 7:26

The Internationalization contributions module says that it adds the rel="alternative" hreflang="x" to multilingual pages:

Internationalization contributions is a set of modules that are add ons for Internationalization module to provide compatibility with other contributed modules or some other features.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.