Projekt

Allgemein

Profil

Aktionen

GX-Bug #67884

geschlossen

Einträge Disallow in der robots.txt erscheinen obwohl diese deaktiviert sind, wenn man nur eine aktive Sprache im Shop hat / Entries Disallow in robots.txt appear although they are disabled if you have only one active language in the shop

Von Till Tepelmann vor mehr als 3 Jahren hinzugefügt. Vor mehr als 3 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Julian Heckmann
Kategorie:
SEO
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.2.0.1, 4.3.1.0
Release Notes Langtext:

Einträge in der robots.txt werden jetzt nur für aktive Sprachen erzeugt

Tags:

Beschreibung

Wenn man im Content-Manager die Option "Disallow Eintrag in robots.txt" für die einige aktive Sprache im Shop deaktiviert, wird der EIntrag weiterhin in die robots.txt aufgenommen, da noch für die deaktiviere Sprache der Eintrag noch aktiv ist.

Hier muss beim Erstellen der robots.txt Datei auch deaktivierte Sprachen beachtet werden und nur Einträge aufgenommen werden, dessen Sprache aktiv ist.

Kann wie folgt reproduziert werden:

  1. Im Gambio Admin die englische Sprache deaktivieren "Admin" und "Shopfront"
  2. Im Content-Manager den Eintrag "Imressum" bearbeiten und die Option "Disallow robots.txt Eintrag" deaktivieren
  3. Unter "Einstellungen->Robots.txt" eine neue robots.txt Datei erstellen
  4. Eintrag "Disallow" für den Eintrag "shop_content.php?coID=4 wird trotz deaktivierter Option mit ausgegeben

Erwartet Ergebnis:
Eintäge die im Content-Manager für die robots.txt deaktiviert sind sollen nicht in der Datei erscheinen wenn es nur eine aktive Sprache im Shop gibt

Tatsächliches Ergebnis:
Einträge in der robots.txt erscheinen auch für deaktivierte Sprachen im Shop und sind somit weiterhin für Google und andere Suchmaschinen gesperrt.

Lösungsvorschlag:

Nur Einträge für aktive Sprachen in die robots.txt aufnehmen.


If you deactivate the option "Disallow entry in robots.txt" in the Content Manager for the active language in the shop, the entry will still be included in the robots.txt, because the entry is still active for the deactivated language.

Here you have to take into account deactivated languages too when creating the robots.txt file and only include entries with an active language.

Can be reproduced as follows:

  1. disable the english language in the Gambio Admin "Admin" and "Shopfront
  2. edit the entry "impress" in the Content Manager and deactivate the option "Disallow robots.txt entry
  3. create a new robots.txt file under "Settings->Robots.txt
  4. entry "Disallow" for the entry "shop_content.php?coID=4 will be output despite deactivated option

Expects result:
Entries that are disabled in the Content Manager for robots.txt should not appear in the file if there is only one active language in the store

Actual result:
Entries in robots.txt appear in the store even for deactivated languages and are therefore still blocked for Google and other search engines.

Solution suggestion:

Include only entries for active languages in robots.txt.


Aktionen

Auch abrufbar als: Atom PDF