homepage Welcome to WebmasterWorld Guest from 54.211.138.180
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
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?

Thanks.

 

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)

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




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

Thanks to you both - much appreciated.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved