I have site with .htaccess which redirect to subfolder "/web"
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule !^web(/?|/.+)$ /web%{REQUEST_URI} [L]
And .htaccess in "/web" which redirects to index.php and set password protect.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
AuthUserFile "/home/anothe10/.htpasswds/public_html/web/passwd"
AuthType Basic
AuthName "web"
require valid-user
I tried to remove password protection, totaly remove .htaccess files, copy index.php to root folder, but it didn't help.