I usually save the .htaccess application in the original control, which includes the Apache configuration necessary to run the application, i.e. rewrite rules that are not related to the server on which it is running, access to environment variables, etc.
: .htaccess , , , , .
, , , .htaccess, , . , Apache .htaccess, VirtualHost, , .