Currently Browsing

.htaccess file not being parsed/read

If 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:

  1. Check the syntax of your .htaccess. Try commenting out using # line by line to see if you can get any part of it working.
  2. Check you’re using the Apache server. IIS does not work with htaccess!
  3. 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.
  4. 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: , ,

LEAVE A REPLY