【发布时间】:2016-03-16 14:15:28
【问题描述】:
我尝试在 magento 管理面板中添加 .htpasswd。我已将这两个文件上传到 magento 根目录中。但是我的密码提示框也是前端来的。
请检查并帮助我如何为 magento 管理员而不是前端实施 .htpasswd?
.htaccess
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /home/xxxxx/public_html/.htpasswd
Require valid-user
.htpasswd
foo:$apr1$yB1.9vIT$IVVBmq5vMauwsNR8CZdHQ. //foo and bar
【问题讨论】:
标签: php .htaccess magento .htpasswd