Plugin Support
Frank
(@staaticfrank)
Hi there,
Thanks for reaching out! The Excluded URLs setting should definitely work for /robots.txt, so let’s figure out what’s going on.
A few questions to help troubleshoot:
- What exactly did you enter in the Excluded URLs field? It should be
/robots.txt with the leading slash. If your WordPress is installed in a subdirectory (e.g., /blog/), the path would need to be /blog/robots.txt instead.
- Is
/robots.txt also listed in your Additional URLs? By default, Staatic adds /robots.txt to the Additional URLs list (Settings > Build > Additional URLs). If it’s there, that would explain the issue; removing it from Additional URLs would be the simplest fix.
- Did you run a fresh publication after saving the settings? Sometimes a previous build’s data can persist.
Let us know what you find and we’ll get this sorted!
Plugin Support
Frank
(@staaticfrank)
Hi @zarzadzany , we haven’t heard back from you for a while, so we’ll assume you managed to get this sorted and we’ll mark the topic as resolved.
If you’re still unable to exclude /robots.txt, feel free to open a new topic with what you currently have in Excluded URLs and whether /robots.txt is listed under Additional URLs, and we’ll be happy to help further.