6

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?

1 Answer 1

12

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

4
  • beat me by 7 seconds, upvote for you
    – Zypher
    Mar 26, 2012 at 22:05
  • Ha, I even reloaded to make sure there wasn't one already posted Mar 26, 2012 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, 2012 at 23:08
  • Yeah, information overload when searching Google. I always start with the apache docs first Mar 26, 2012 at 23:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .