Welcome to WebmasterWorld Guest from 54.227.83.19

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

htaccess or httpd.conf?

     

Ian_W

1:11 pm on May 20, 2003 (gmt 0)

10+ Year Member



Hi,

Simple question :) Which is better for the server/browsers, to put commands like redirects in httpd.conf or .htaccess?

Thanks.

bcc1234

1:21 pm on May 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

1:23 pm on May 20, 2003 (gmt 0)

10+ Year Member



Sorry, when I said browsers, I meant users browsing the sites :) Apologies.

jdMorgan

10:01 pm on May 20, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Ian_W,

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.

Jim

Ian_W

8:01 am on May 21, 2003 (gmt 0)

10+ Year Member



Thanks to you both - much appreciated.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month