We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.
Publii automatically generates a robot.txt file. The best way to edit this file is “override” it by creating a new robot.txt file in the root directory using the File Manager. Publii, when encounters this file, will not generate its own robots.txt file.
Publii automatically generates a robot.txt file. The best way to edit this file is “override” it by creating a new robot.txt file in the root directory using the File Manager. Publii, when encounters this file, will not generate its own robots.txt file.
It happened only when publii synced the whole website (all files to be uploaded). I don’t know what is the case for a full resync of the files but that’s when the robots.txt is also replaced.
But form of sync has nothing to do here in my opinion – Publii during generating output files should always use your overrided robots.txt file.
Full sync can caused by global website changes (in footer/header) or due problem with checking publii.files.json file which is used to check which files should be synced.