0
我试图保证我的wordpress站点在htaccess后面,但似乎正在失败。htaccess一个WordPress站点
HTML
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile www.sample.com/.htpasswd
Require valid-user
任何想法?
我试图保证我的wordpress站点在htaccess后面,但似乎正在失败。htaccess一个WordPress站点
HTML
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile www.sample.com/.htpasswd
Require valid-user
任何想法?
AuthUserFile
值总是特定于您的主机配置。如果您不知道数值应为多少,请执行phpinfo()
并查找DOCUMENT_ROOT
值。
应该做某事这样的:
AuthUserFile /home/YOUR_NAME_ETC/.htpasswd
“A失败,”对我们来说是一个非常描述性错误消息来解决。 – ceejayoz