title: Protect Development Wordpress site using htaccess
body: <p>How can I password protect development Wordpress site complete from search engines and humans using htaccess.</p>
  
  <p>Also can you specify in which folder I need to keep .htaccess file in wordpress to complete block it.</p>
  
  <p>I tried it with following htacess file but after logging in only homepage showsup and other pages don't work.</p>
  
  <pre><code>SetEnvIf Host dev.test.com passreq
  AuthType Basic
  AuthName "restricted area"
  AuthUserFile /home/user/dev.test.com/wp-content/themes/theme_name/.htpasswd
  Require valid-user
  Order allow,deny
  allow from all
  Deny from env=passreq
  Satisfy any
  </code></pre>
  
  <p>What am I doing wrong? Currently I am keeping .htaccess file in *wp-content/theme/theme_name/.htaccess*</p>