[Linux] .htaccess file checklist


Writing time : 2015-12-27 04:42:20

.htaccess file checklist

Check file encoding


The file encoding of the .htaccess file must be in ANSI format.

For other formats such as UTF-8, modify the file encoding to ANSI.

Check httpd.conf


Check if AllowOverride All is set inside.

It should be in the following format.

<Directory "/var/www/html">  
  
...  
  
AllowOverride All  
  
...  
  
</Directory>  

The /var/www/html part may be different for each configuration environment.

AllowOverride All should not be set as a duplicate below.

I added AllowOverride All to httpd.conf before, but it didn't work properly, and when I checked again carefully, the setting was duplicated as AllowOverride None under AllowOverride All.

Previous post

Next post

Other posts in the category