Hey,

I am trying to setup separate robots.txt file for each language, but the output is the same robots.txt in all languages, check this

https://www.thalesesecurity.com/robots.txt
https://www.thalesesecurity.co.uk/robots.txt

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cmyharish created an issue. See original summary.

hass’s picture

Category: Bug report » Feature request
Priority: Critical » Normal

Please share your patch. Aside, core does not provide the ability to have per language variables.

hass’s picture

Title: Not working with Multi-Lingual site » robots.txt per language
k-l’s picture

Hi,

Core provides option to have translatable configuration.
Attaching patch that changes config to translatable config, so after saving initial robotstxt settings in /admin/config/search/robotstxt you will get tab to add translations.

hass’s picture

Nope. I already made the same fault.

Niklan’s picture

Agreed, this is need to be in core of the module. Path from #4 is working as expected, thanks!

hass’s picture

Status: Needs work » Closed (works as designed)

@Niklan: This patch is not correct. See the referenced case.

Closing the case as there is no progress and I have no idea how to solve.