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

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

/var/www/html/SITENAME

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 www.SITENAME.com the .htaccess file works?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer

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.