You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought this problem was specific to the Contao CMS, which uses this package to generate the robotos.txt, but I was asked to report it here instead so that everyone using it can benefit from a fix. (Related Contao Issue#7742 and rejected Contao PR#7743)
I'm not quite sure how to explain it in a general way but maybe like this:
When there is a record with only the directive disallow:/ (just this one line) and, for example, another EventListener adds other disallow directives (or vice versa), it ends up with redundant disallow rules in the robots.txt, for example like
The additional disallow rules are not necessary, as disallow:/ already prohibits access to them. So ideally this package should check if there is a general disallow:/ directive and if so, remove other disallow: rules from this record when the robots.txt gets rendered.
The text was updated successfully, but these errors were encountered:
I thought this problem was specific to the Contao CMS, which uses this package to generate the robotos.txt, but I was asked to report it here instead so that everyone using it can benefit from a fix. (Related Contao Issue#7742 and rejected Contao PR#7743)
I'm not quite sure how to explain it in a general way but maybe like this:
When there is a record with only the directive
disallow:/
(just this one line) and, for example, another EventListener adds other disallow directives (or vice versa), it ends up with redundant disallow rules in the robots.txt, for example likeThe additional disallow rules are not necessary, as
disallow:/
already prohibits access to them. So ideally this package should check if there is a generaldisallow:/
directive and if so, remove otherdisallow:
rules from this record when the robots.txt gets rendered.The text was updated successfully, but these errors were encountered: