title: How to config htpasswd with htaccess
body: <p>i want to make some pages password protected using .htpasswd </p>
  
  <p>How can i do it ??</p>
  
  <pre><code># Do the regex check against the URI here, if match, set the "require_auth" var
  SetEnvIf Request_URI ^/product-category/ require_auth=true
  
  # Auth stuff
  AuthUserFile /home1/thetimh6/public_html/htpasswd
  AuthName "Password Protected"
  AuthType Basic
  
  # Setup a deny/allow
  Order Deny,Allow
  # Deny from everyone
  Deny from all
  # except if either of these are satisfied
  Satisfy any
  # 1. a valid authenticated user
  Require valid-user
  # or 2. the "require_auth" var is NOT set
  Allow from env=!require_auth
  </code></pre>
  
  <p>I am try it in my htaccess file but it is showing me </p>
  
  <p>500 Server Error </p>