title: .htpasswd and .htaccess - internal server error
body: <p>I want to password protect my website, but as soon as I add in the .htpasswd and .htaccess files I get a server error:</p>
  
  <blockquote>
    <p><strong>Internal Server Error</strong></p>
    
    <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
    
    <p>Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
    
    <p>More information about this error may be available in the server error log.</p>
  </blockquote>
  
  <p>Here is the code I'm using:</p>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>AuthType Basic  
  AuthName "Top Secret for SongKick eyes only."  
  AuthUserFile /webroot/.htpasswd  
  require valid-user
  </code></pre>
  
  <p><strong>.htpasswd</strong></p>
  
  <pre><code>songkick:isS1rCTQE/p8E
  </code></pre>
  
  <p>I've also tried <code>AuthUserFile /.htpasswd</code> (ie. without "webroot", which is the name of the folder it appears to be in File Manager) but this doesn't work either.</p>
  
  <p>I'm using GoDaddy hosting by the way, if that makes a difference.</p>