Ok, here is my issue and the reason I want to split up the .htaccess file into two parts:
I have a local developing machine with windows as well as a test and a productive system running on the same machine on openSUSE. That causes me some trouble:
- I use a htaccess auth mechanism which need an absolute AuthUserFile path
- I use a rewrite condition for non www subdomains on the productive system
- I use several caching techniques on the productive system I don't want to use on my local system
- I have some kind of IP blacklist I update on my productive system
The whole system including the .htaccess is stored and updated with a SVN repository. So each change for the productive system I have to make after an update. So every new update is a merge which sometimes causes a conflict. If I revert a version of the .htaccess because of some errors in the .htaccess it causes in a lost of all the custom changes.
So my question is: Can I split a .htaccess file in several parts and include them into each other. or is it possible to have another kind of apache config file (like a httpd.conf). I also use Plesk to manage the domains and as I am not a linux expert I would prefer a solution without changing the Plesk configuration files of the domain.