Exclude one folder in htaccess protected directory

前端 未结 5 1729
猫巷女王i
猫巷女王i 2020-12-30 00:20

I have a directory protected by htaccess. Here is the code I use now:

AuthName \"Test Area\"
Require valid-user
AuthUserFile \"/***/.htpasswd\"
AuthType basi         


        
5条回答
  •  自闭症患者
    2020-12-30 00:47

    There is no need to create a .htaccess in the subdirectory.

    Just create as many variables as you need with SetEnvIf directive, and be sure the file or path name you want to allw/deny is part of the URI regex you pass to SetEnvIf, exactly like @Sumurai8 said, but set the regex to fit your needs, for the URI should start/end/contain a set of characters............

提交回复
热议问题