Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
htaccess or httpd.conf? Ian_W msg:1511029 1:11 pm on May 20, 2003 (gmt 0) Hi,
Simple question :) Which is better for the server/browsers, to put commands like redirects in httpd.conf or .htaccess?
bcc1234 msg:1511030 1:21 pm on May 20, 2003 (gmt 0)
httpd.conf is better. It's only processed when you restart apache. .htaccess is processed with every request (to check if the timestamp has changed).
It's got nothing to do with browsers.
Ian_W msg:1511031 1:23 pm on May 20, 2003 (gmt 0)
Sorry, when I said browsers, I meant users browsing the sites :) Apologies. jdMorgan msg:1511032 10:01 pm on May 20, 2003 (gmt 0)
I think .htaccess is better for development. If you have a lot of complex rules to develop, get them working and tweaked-up in .htaccess, and then modify them and move them to httpd.conf. This saves a lot of server restarts.
I absolutely agree that httpd.conf is the best place to put them once they're working - if you have that option.
Ian_W msg:1511033 8:01 am on May 21, 2003 (gmt 0)
Thanks to you both - much appreciated.