Level 1
I think this is more of a GIT problem. I would add the robots.txt to gitignore, and then maintain a different robots.txt for each enviroment.
2 likes
Working on a new site currently, and have a local dev environment, staging site and production site. All 3 are working from the same github repo
I just happened to noticed that Google is crawling my staging site.
How do you handle this in your setup? I know I can create a robots.txt file, but that would be committed to the repo and sent to production.
Please or to participate in this conversation.