.htaccess: How to not redirect /wpfiles directory to /main directory?
<p>I am prepping a site for launch. I'm still learning how to work with .htaccess, and I'm having some trouble. The new wordpress site is in the /wpfiles directory. Trying to visit /wpfiles gets redirected to /main. It seems that accessing the index.php file in /wpfiles triggers the rewrite rule below, but accessing <em>any other file or directory</em> in /wpfiles doesn't.</p>

<p>I would like to open up the /wpfiles directory so that I am able to review the site and send it to the client. Here is the existing .htaccess file from the public_html directory.</p>

<pre><code>RewriteOptions inherit

RewriteEngine on

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

&lt;Limit GET POST&gt;
order deny,allow
deny from all
allow from all
&lt;/Limit&gt;
&lt;Limit PUT DELETE&gt;
order deny,allow
deny from all
&lt;/Limit&gt;
AuthName siteurl.com
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/siteurl\.com\/main\/" [R=301,L]
</code></pre>

<p>My /wpfiles .htaccess file is as follows:</p>

<pre><code># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /wpfiles/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wpfiles/index.php [L]
&lt;/IfModule&gt;

# END WordPress
</code></pre>

<p>What might I need to adjust in order to only exempt /wpfiles/index.php from the rewrite rule?</p>

<p>Thanks in advance for your help!</p>