dachcom-digital / pimcore-i18n

Pimcore - i18n Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set <meta name="robots" content="noindex"> on redirect from maindomain to language context

plexmaniax opened this issue · comments

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no

Given Scenario

  • Page: https://domain.com/
  • Available Locales: de and en
  • Default Locale: en

Current Result

Default Request

https://domain.com/

Depending on your browser settings you should be redirected to /de or /en
Google indexes https://domain.com/ instead of https://domain.com/de or https://domain.com/en

Desired Result

Default Request

GET https://domain.com/

Google should index the final page after redirect and should ignore the maindomain. Instead of https://domain.com/ there should be to indexes https://domain.com/de or https://domain.com/en depending of google context (google.ch/de or google.com)

To Define

  • Make sure the that the initial redirect from maindomain to language context has the flag , this should prevent google to index the maindomain.