3 ms·
The .htaccess file is not required for anything. Anything that can be put into .htaccess can be put into httpd.conf or one of the virtual host confs.
by vonmoltke 13y ago
The .htaccess file is not required for anything. Anything that can be put into .htaccess can be put into httpd.conf or one of the virtual host confs.
- chime 13y agoAgreed. However, in a shared hosting environment (which most personal sites are in), you can't edit the .conf files.
- bstamour 13y agoWhich goes right back to the original piece of advice: if you have access to the main apache config, put your changes there for performance reasons. Otherwise use .htaccess.
- oneeyedpigeon 13y ago> Anything that can be put into .htaccess can be put into httpd.conf or one of the virtual host confs. Also, important to note, "and not vice versa" (i.e. httpd.conf much more powerful)