Can anyone help me with .htaccess?

Error Message

500 Internal Server Error

Oops, something broke when loading the page you requested! This is usually caused by bad .htaccess code or an error in your PHP code. Learn More.

Other Information

Basically I want protect my website insert a password but don’t work? Anyone can help me to configuarate it? I insert in /htdocs folder the files .htaccess and .htpasswd


AuthType Basic
AuthName "Password Protected Area"
AuthUserFile htpp://
require valid-user

You can use the Directory Privacy feature in cPanel, it is easier to set up that way and you don’t have to worry about any misconfiguration. But, if you wish to do it this way, please follow this article as it describes the correct way to implement this:


This should probably be:

AuthUserFile .htpasswd

AuthUserFile requires a local file path, not the URL to a website.

Also, I would strongly recommend to use our Directory Privacy function for this instead.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.