homepage Welcome to WebmasterWorld Guest from 54.197.183.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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

10+ Year Member



 
Msg#: 210 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 210 posted 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

10+ Year Member



 
Msg#: 210 posted 1:23 pm on May 20, 2003 (gmt 0)

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

jdMorgan

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



 
Msg#: 210 posted 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

10+ Year Member



 
Msg#: 210 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved