title: restrict access to one page using htaccess in wordpress
body: <p>I have a page in Wordpress <code>theme_directory/page-rsvp.php</code> that i need password protected by .htaccess. I'm developing this locally using MAMP PRO. </p>
  
  <p>I have an .htaccess and .htpasswd file in the theme_directory. I have the following in the .htaccess file but it's not working. Whenever I go to localhost:8888/site/rsvp the authentication prompt doesn't show up. </p>
  
  <pre><code> &lt;Files “page-rsvp.php”&gt;
     AuthName "Username and password required"
     AuthUserFile ./.htpasswd
     Require valid-user
     AuthType Basic
   &lt;/Files&gt;
  </code></pre>
  
  <p>There is of course the .htaccess file in the root of the wordpress install that looks like this:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /thepowerfulnow/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /thepowerfulnow/index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  
  <p>How do I get this to work using only the first .htaccess file (the one in the theme_directory)? I need to have this theme be modular. I'm very new to .htaccess files. Thank you all!</p>