Posted 4 ноября, 20231 yr comment_197259 Not opening the password folder Hello I have a problem, when I put a password on a folder, it work, but when the code RewriteCond %{REQUEST_FILENAME} !-f I remove it from htaccess, the folder works properly and asks for a password Please help me. I didn't have this problem before and this problem just happened
4 ноября, 20231 yr Author comment_197263 The problem was fixed To solve this problem, change the specified code in the httaccss file as follows <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> After the changes <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ./ /index.php [L] </IfModule> Once you modify this rewrite rule, password protection of the internal folder should work as expected. Clear your browser cache and check the changes.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.