hi

i am just about to optimize my page for seo.

i have the locale block on my site to switch between german (prefix: de) and english (en).

if the user uses german language the link on the frontpage links to www.example.com/de even the page is also accessible unter www.example.com (without de).

that means for search engines the links

www.example.com
www.example.com/de

would redirect to the same content --> duplicate content problem!

is it possible to modify the locale block to not add the language prefix if the user is on the frontpage?

thanks

Comments

akaserer’s picture

i think it could be done with

Implementation of hook_translation_link_alter

no one has got the same case?

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.