Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from May 6 '10 at 14:26

This question came from our site for professional and enthusiast programmers.

Am I the only one shocked that this information isn't here: (It's in the WP article 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 6 '10 at 14:29
up vote 7 down vote accepted

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

share|improve this answer
Hmm...I don't have an apache directory in /var/log – Andrew May 6 '10 at 14:38
Maybe /var/log/apache2/access.log – Johan May 6 '10 at 14:41
I don't have anything in /var/log that looks like Apache logs. Maybe there are no logs? – Andrew May 6 '10 at 14:45
on some systems it's /var/log/httpd-access and /var/log/httpd-error – Chris S May 6 '10 at 15:06
depending on how you installed apache it can also end up in /usr/local/apache2/logs or something along those lines – Catherine MacInnes May 6 '10 at 15:37

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.


share|improve this answer

Your Answer


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.