.htaccess deny files in subfolders

后端 未结 4 809
不思量自难忘°
不思量自难忘° 2021-02-02 01:33

I want to block access to \"sub/folder/index.php\", but not \"index.php\" anywhere else.


    Order allow,deny
    Deny from all
         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-02 01:46

    I try creating another .htaccess in that sub/folder/ to block the access to that index.php.

    "If you place a .htaccess file in a sub-folder, its directives will override the ones that you have in your site main folder."

    This page has further information: http://www.besthostratings.com/articles/htaccess.html

提交回复
热议问题