Forum Moderators: phranque
.htaccess is starting to get pretty big with bans and rewrites, etc. Since .htaccess is used on every server request httpd.conf would be a better option for the ban list, correct? The only thing it requires a server restart in order for the server to start recognizing the new rules. Am I correct here? Also, the httpd.conf file is placed in the root directory and controls all directories below that, just like .htaccess?
How do I verify that the rules are being used? Note that I'm on shared hosting so I probably have the same permissions any shared customer has.
Thanks.
Httpd.conf is also invoked for every HTTP request to the server. The difference is that code in httpd.conf is compiled at server startup, and runs as "raw executable code" for each request. In contrast, code in .htaccess in interpreted for each HTTP request, and must be translated all the way from the original text-characters to executable code for each HTTP request.
If you're not familiar with the differences between compiling and interpreting code, a search for these terms will turn up many references in general programming discussions and documents. An example of compiled code is "C", while an example of interpreted code is PERL.
Jim