让 .htaccess 根据域名要求输入密码
我们有几个域名别名都指向同一服务器和目录(只是别名)。
但当人们来自某些域名时,我想用密码保护(htaccess)该网站。
谢谢
We have several domain name aliases all pointing to the same server and directory (just aliases).
But I'd like to password-protect (htaccess) the site when people come from certain domain names.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
SetEnvIf
和
:You can do this using
SetEnvIf
and<IfDefine>
: