Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The robots.txt file should be configurable per language.
For example, all of these sites could be running from the same drupal instance:
mysite.com
mysite.kr
mysite.uk
mysite.de
All of the above should be able to have a specific robots file.
Comment | File | Size | Author |
---|---|---|---|
#9 | robotstxt-multilingual-2492271-9.patch | 2.29 KB | zhuber |
#7 | robotstxt-multilingual-2492271-7.patch | 2.12 KB | zhuber |
#5 | robotstxt-multilingual-2492271-5.patch | 1.76 KB | zhuber |
#3 | robotstxt-multilingual-2492271-3.patch | 2.07 KB | zhuber |
#1 | robotstxt-multilingual-2492271.patch | 2.15 KB | zhuber |
Comments
Comment #1
zhuber CreditAttribution: zhuber as a volunteer and at Mirum Agency commentedThis patch provides for multilingual support for the robots configuration.
Comment #2
zhuber CreditAttribution: zhuber as a volunteer and at Mirum Agency commentedComment #3
zhuber CreditAttribution: zhuber as a volunteer and at Mirum Agency commentedComment #5
zhuber CreditAttribution: zhuber as a volunteer and at Mirum Agency commentedUpdated patch for fixing the language list.
Comment #7
zhuber CreditAttribution: zhuber as a volunteer and at Mirum Agency commentedComment #9
zhuber CreditAttribution: zhuber as a volunteer and at Mirum Agency commentedComment #10
hass CreditAttribution: hass commentedThis modules supports multilingual sites. You only need to install Variables and/or Doman module.
Aside - drupal_exit() is incorrect!!!