The only possiblility, even though it is definitely not kosher, is to let .htaccess
be ignored by versioning system locally. Then you can change as you wish to adapt you instance.
In case you need to change original .htaccess
, you must do following (for GIT):
- backup your modified
.htaccess
file - Comment out line
.htaccess
in file.git/info/exclude
- do
git checkout -- .htaccess
to retrieve original file - modifiy and commit changes
- Uncomment
.htaccess
line in.git/info/exclude
- Copy modified
.htaccess
from backup to working tree