I have a standard WordPress installation at the root of my public_html directory with this .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I would like to protect the directory /manager which contain an other application with AuthType Basic so my .htaccess look like:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
AuthUserFile .htpasswd
AuthType Basic
AuthName "Admin Area"
Require valid-user
Here is my basic structure:
/.htaccess
/index.php
/manager/.htaccess
/manager/index.php
Now, when I try to access /manager directory, I receive a 404 Not Found from my WordPress installation. Why?