[Task]: Only enable full robots.txt & sitemap on the main domain #15309
Labels
needs:info
repository:addons-frontend
Issue relating to addons-frontend
repository:addons-server
Issue relating to addons-server
Description
It's technically possible for AMO to be reached through alternative domains (and more of these will be added in the future). We shouldn't enable
/robots.txt
and the sitemap when domains other than the mainaddons.mozilla.org
one are being used.There is already a mechanism for the
robots.txt
part of this, the check needs to be flipped to take other domains into account:Needs to be changed to something like (check
SERVER_NAME
is updated correctly when other domains are used!):Note that currently
settings.ENGAGE_ROBOTS
is alsoFalse
on dev & stage, by design. That makes this annoying to test for QA.Acceptance Criteria
Milestones/checkpoints
Checks
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: