If possible, modify your apache VirtualHost which would be the fastest since it's not checked on each page request. However, I'm not 100% certain that the .htaccess file is.
So don't read this post, because I dunno what I'm saying.
If you can (dedicated server for example), put anything "permanent" into your web server config file and not the htaccess file... the htaccess file has to be loaded for each request... That will be the absolute fastest.
put the config line in httpd.conf first - this is faster because the settings are loaded into memory after apache was started. unlike .htaccess which are loaded everytime the page is access.
put the config line in httpd.conf first - this is faster because the settings are loaded into memory after apache was started. unlike .htaccess which are loaded everytime the page is access.
Aaah yes! I've read about that before but forgotten about it, thanks
can i have an image directory protected from the httpd.conf instead with an .htaccess file when the .htaccess file in the domain.com/images/ directory looks like:
Comment