htaccess caching


New Member
I just purchased a plan using DirectAdmin. Does Knownhost offer htaccess caching?

As of late I've read quite a bit that htaccess use can cause load on servers, as they (htaccess files) load with every request.

My site structure pretty much relies upon it (mod_rewrite, agent blocking, etc.) so I'm not ready to give it up just yet.
.htaccess is being read by Apache every time when access to the page located in the directory/subdirectory where .htaccess file is present. Apache doesn't cache information it read from .htaccess. Having a lot of (large) .htaccess files and, especially with mod_rewrite rules will slow down your sites and will dramatically increase CPU usage - mod_rewrite is one of the most CPU intensive Apache modules. If possible - better not to use it at all.

I wished I knew a way to cache htaccess files. It is a must to use if you use CMS systems (like joomla). To make search engine friendly URLS, I use a lot of mod rewrite. If you find a way to cache it, I would love to hear about it please.
You can try to move this configuration to the VirtualHost block for your site in main Apache configuration file - configuration from httpd.conf / httpd.conf includes is being loaded only once at the time when Apache is starting. This might speed thigs up a bit but still you may continue to waste great amount of CPU power for mod_rewrite rules processing as mod_rewrite isn't very CPU friendly. If you can live w/o mod_rewrite - kill it, this will immediatelly speed up your sites.