7

So I changed an htaccess file on my server, and am not seeing the changes. Do I need to restart Apache if I modified an htaccess file?

Update: So I don't think this is my problem. Please see my related question: Why is my htaccess file preventing access to my MP3 file?

Andrew
  • 3,453
  • 9
  • 33
  • 36
  • Am I the only one shocked that this information isn't here: http://httpd.apache.org/docs/2.2/howto/htaccess.html? (It's in the WP article http://en.wikipedia.org/wiki/Htaccess but that's hardly canonical.) @OP: I can't see how it would be necessary, since `.htaccess` files are used by shared hosting providers to allow customers to do their own config. – T.J. Crowder May 06 '10 at 14:29

2 Answers2

9

No you don't. Make sure the htaccess is really loaded. Take a look at your access log, for example /var/log/apache/access.log

Johan
  • 756
  • 5
  • 20
3

It's already been answered, however you don't need to reload as they are read each time a request is made.

This is why on high performance sites you should avoid use them as you are causing an extra I/O event per request. When you're working with tens of thousands of hits an hour it's just too much overhead.

Coops.

Coops
  • 6,055
  • 1
  • 34
  • 54