Ad

How To Prevent Robots.txt Passing From Staging Env To Production?

- 1 answer

I had happen in the past that one of our IT Specialist will move the robots.txt from staging from production accidentally. Blocking google and others from indexing our customers' site in production. Is there a good way of managing this situation?

Thanks in advance.

Ad

Answer

Ask your IT guys to change the file permissions on robots.txt to "read-only" for all users, so that it takes the extra steps of:

  1. becoming Administrator/root
  2. changing the permissions to allow writes
  3. overwriting robots.txt with the new file
Ad
source: stackoverflow.com
Ad