It’s not clear from the .htaccess
files you’ve posted why you can’t access files/folders outside of your WordPress installation (inside the /websiteWP
subdirectory). In fact, you shouldn’t need to add specific exceptions in order to access physical files, since these directives shouldn’t apply to physical files.
However, your .htaccess
files are misconfigured…
If the WordPress installation is in /websiteWP
directory then the /websiteWP/.htaccess
file (in the route of your WordPress installation) is incorrect, as it is routing all requests to /index.php
– that’s the index.php
file in the document root (which I assume is the parent directory), not the WordPress front-controller which should be in the same directory, ie. /websiteWP/index.php
).
However, I assume /index.php
(in the document root) doesn’t exist (otherwise your WordPress site won’t work). The .htaccess
directives in the root .htaccess
file are then rewriting the request back to the /websiteWP/index.php
WordPress front-controller! This is extra work and unnecessary.
You should change the /websiteWP/.htaccess
file to read:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
Note I have removed the RewriteBase
directive and removed the slash prefix on the RewriteRule
susbstitution, changing /index.php
(root-relative) to index.php
(relative).
Then, the root .htaccess
file is not required at all.