Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a hosted server.

When I update .htaccess, are the updated rules immediately in effect?

I understand that hosters can do what they want, and it's impossible to know without knowing the particular policy of this particular hoster. But in the normal case, if I update .htaccess, does Apache re-read it immediately? Or is there something I can do to tell Apache to re-read it?

or what?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

The .htaccess is loaded up on each request, even if it's in internal one (using mod_modrewrite)

Take and look at http://httpd.apache.org/docs/current/howto/htaccess.html and especially the 'When (not) to use' section

share|improve this answer
    
beat me by 7 seconds, upvote for you –  Zypher Mar 26 '12 at 22:05
    
Ha, I even reloaded to make sure there wasn't one already posted –  Ryan Gibbons Mar 26 '12 at 22:18
    
Thanks Ryan. I googled for mod_rewrite .htaccess update but the signal-to-noise ratio was really really low. –  Cheeso Mar 26 '12 at 23:08
    
Yeah, information overload when searching Google. I always start with the apache docs first –  Ryan Gibbons Mar 26 '12 at 23:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.