Forum Moderators: phranque
Code in httpd.conf or conf.d is compiled --translated from characters into machine code-- once at server restart, while code in .htaccess in interpreted --translated from characters into 'tokens' to be further processed-- for each and every HTTP request that resolves to or transits the directory in which the .htaccess code resides.
So, in general, putting your code into httpd.conf, conf.d, or other server-configuration file will result in much-more-efficient processing of that code as compared to .htaccess. This is traded off against the requirement of restarting the server if any changes are made to the code in httpd.conf. And of course, most Webmasters are on shared hosting and don't have the luxury of making any changes to the server configuration files.
Jim