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

I have a CentOS server I just setup, and I set the DocumentRoot in the httpd.conf file as


and that works fine.

The /var/www/html/SITENAME/.htaccess rules inside that folder are not working/applying themselves unless I put .htaccess rules in the httpd.conf file, in which case it works.

How do I make the .htaccess rules in that folder actually apply themselves so when I visit the .htaccess file works?

share|improve this question
up vote 3 down vote accepted

You're probably using AllowOverride none in your httpd.conf file

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.