title: Bypass .htaccess authorization for registration page in Wordpress
body: <p>I use a .htaccess rule to add an extra layer of password security to the wordpress login page. Now as the whole <code>wp-admin</code> is protected. Users who wish to register, lands on the page with the <code>username</code> and <code>password</code> prompt for the <code>authentication</code>.</p>
  
  <p>Is there anyway I can bypass this only for user registration URI?</p>
  
  <p>I currently have <code>authentication</code> for this URL - <code>www.example.net/wp-login.php</code></p>
  
  <p>But I couldn't exclude the <code>authentication</code> prompt for this URL - <code>www.example.net/wp-login.php?action=register</code></p>
  
  <p><strong>This is my .htaccess rule:</strong></p>
  
  <pre><code>&lt;FilesMatch "wp-login.php"&gt;
  AuthName "Authorized Users only"
  AuthType Basic    
  AuthUserFile /home/user/.wpadmin    
  require valid-user  
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>Is there anyway to exclude the security <code>authentication</code> for the queried URL for registering in my site?</p>