.htaccess file not being read (“Options -Indexes” in .htaccess file not working)

后端 未结 8 1460
梦谈多话
梦谈多话 2020-12-13 12:56

I created an .htaccess file with only the following line:

Options -Indexes

However, the index is still shown for the directory.<

8条回答
  •  一整个雨季
    2020-12-13 13:45

    I solved this problem on RHEL by editing file /etc/http/conf/httpd.conf I changed all

    AllowOverride None
    

    To

    AllowOverride All
    

    Also you can check httpd.conf AllowOverride by following command on RHEL

    grep -i AllowOverride /etc/conf/conf/httpd.conf
    

提交回复
热议问题