Y
Hacker News
new
|
ask
|
show
|
jobs
by
vonmoltke
4531 days 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.
2 comments
chime
4531 days ago
Agreed. However, in a shared hosting environment (which most personal sites are in), you can't edit the .conf files.
link
bstamour
4531 days ago
Which 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.
link
oneeyedpigeon
4531 days 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)
link