14Oct
.htaccess file not being parsed/read
Published in Blog, Uncategorised by Adam Williams / 0 CommentsIf you have a .htaccess file in your web directory and it does not appear to be being parsed, here’s a few things to check:
- Check the syntax of your .htaccess. Try commenting out using # line by line to see if you can get any part of it working.
- Check you’re using the Apache server. IIS does not work with htaccess!
- In the httpd.conf (normally located in /etc/httpd/conf/httpd.conf), check that the line AccessFileName is not commented out and make sure it is set to .htaccess.
- Also in httpd.conf do a search for AllowOverride and ensure that it is not commented out and that it is set to All for the directory root you are working in.
I hope this helps!
Tags: .htaccess, apache, httpd.conf