.htpasswd and .htaccess - internal server error

后端 未结 4 1620
死守一世寂寞
死守一世寂寞 2021-01-04 00:51

I want to password protect my website, but as soon as I add in the .htpasswd and .htaccess files I get a server error:

Internal Server Error

4条回答
  •  走了就别回头了
    2021-01-04 01:10

    Major reason of this error is the "AuthUserFile" path. I was having this same issue and i solved it by going in cpanel. By protecting your folder in cPanel, it automatically detects the htpasswd file.

    Go to cPanel->Password Protect Directories->Define directory and then create a user. Hope this help you.

提交回复
热议问题