When I do a minor upgrade of the core, my custom
robots.txt are overwritten.
How do I prevent that?
You can build a site totally with git to help manage this process. The process is basically
Git clone into your DOCROOT:
Rename the remote:
Checkout the latest tag, and make a site branch for your site
Now, you can build your site and customize robots.txt and .htaccess to your needs.
When there is a core update, you can
and then use the normal git methods for merging your changes in, eg
or you can preview what will happen, check for conflicts, etc.
If you do this, you need to make sire you don't do a plain
as this will then mess things up. I do not think that
One way to solve this, is as follows:
You can script this, using drush for doing the upgrade and git for managing patches and checking for conflicts. This usually makes upgrading quick and painless, even if you've have customized
For Apache & configurations without Git, you can alias the root