htaccess deny from all

前端 未结 3 1152
北荒
北荒 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 00:12

    You can use from root directory:

    RewriteEngine On
    RewriteRule ^(?:system)\b.* /403.html
    

    Or:

    RewriteRule ^(?:system)\b.* /403.php # with header('HTTP/1.0 403 Forbidden');
    

提交回复
热议问题