avangcom Опубликовано 4 ноября, 2023 Поделиться Опубликовано 4 ноября, 2023 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 Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
avangcom Опубликовано 4 ноября, 2023 Автор Поделиться Опубликовано 4 ноября, 2023 @Desti Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
avangcom Опубликовано 4 ноября, 2023 Автор Поделиться Опубликовано 4 ноября, 2023 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. Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения
Присоединяйтесь к обсуждению
Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.