htaccess deny from all

前端 未结 3 1149
北荒
北荒 2020-12-13 23:34

I\'ve been cleaning up my project lately. I have a main .htaccess in the root directory and 6 others. 5 of them ran Options -Indexes which i didn\'t see anypoin

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-14 00:03

    You cannot use the Directory directive in .htaccess. However if you create a .htaccess file in the /system directory and place the following in it, you will get the same result

    #place this in /system/.htaccess as you had before
    deny from all
    

提交回复
热议问题