使用.htaccess保护特定目录
是否可以使用单个.htaccess和.htpasswd文件保护特定目录 我只能在seam中找到保护单个文件或整个目录(及其子目录)的功能 例如/public\u html/myfolder中的htpasswd 保护 /public_html/myfolder/secret使用.htaccess保护特定目录,.htaccess,access-control,.htaccess,Access Control,是否可以使用单个.htaccess和.htpasswd文件保护特定目录 我只能在seam中找到保护单个文件或整个目录(及其子目录)的功能 例如/public\u html/myfolder中的htpasswd 保护 /public_html/myfolder/secret /public\u html/myfolder/admin 但不是 /public\u html/myfolder/mypublicfileshtaccess文件是每个目录的选项,它有点像块,但由放置htaccess文件的位置
/public\u html/myfolder/admin 但不是
/public\u html/myfolder/mypublicfileshtaccess文件是每个目录的选项,它有点像
块,但由放置htaccess文件的位置定义。因此,您不能在htaccess文件所在的目录之外的目录上任意设置HTTP身份验证