.htaccess not loaded

If your .htaccess file is not loaded (check you error.log to see if any error occurs, but if no entry is found, it’s simply not parsed), 99% it’s because parsing of .htaccess file has been disabled in httpd.conf.

Look for your httpd.conf file (/etc/apache/httpd.conf or sthg like this, in debian any of your /etc/apache/sites-available files, edit the one matching your corresponding VirtualHost) and ensure that:

AllowOverride All

is set and NOT

AllowOverride None

(which disable parsing .htaccess).

Make sure also that AccessFileName is not set to something else than .htaccess (its default value when not specified) otherwise rename your .htaccess file to match this value.

sources

  • http://www.webmasterworld.com/apache/3536939.htm

Post a Comment

Your email is never published nor shared. You're allow to say what you want...