title: .htaccess authentication for directory internal server error
body: <p>Trying to password protect a directory on my website by using the .htaccess file but I am getting an internal server error after entering my username and password. The directory is located at example.com/admin/</p>
  
  <p>this is the .htaccess file in the admin directory of my site.</p>
  
  <pre><code>AuthType Basic
  AuthName "Please enter your username and password"
  AuthUserFile /###/admin/.htpasswd
  Require user myusername
  </code></pre>
  
  <p>and the .htpasswd file is in the same directory as the .htaccess file, I have tried changing the <code>AuthUserFile</code> path to just .htpasswd, also tried admin/.htpasswd, but keep coming up with an internal server error</p>
  
  <p>my .htpasswd file looks like this:</p>
  
  <pre><code>myusername:#passwordencrypted#
  </code></pre>
  
  <p>I am on godaddy hosting if that could be the problem.</p>