On my main site, I have Wordpress running in a subfolder, as in
http://mainsite.com/wp/
I notice that there is an .htaccess file in the root as well as in the WP folder. The one in the root is:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
, which is identical to the one in the WP folder. Do I need both of them? Is the root one there because index.php is in the root, essentially pointing to the WP installation as the core of the site? I did it this way because we have many years of legacy HTML files branching from the root, as well as the WP installation.