I have this for when:
- Request is not an existing file OR
- Request ends with .php
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} \.php$
RewriteRule ^(.*)$ http://login/sites/?request=$1 [L]
I do not understand almost anything about htacess, could anyone help me in addition to block access, release via some condition, eg via GET , or even access $ _ SESSION , access to a folder?
Action: When trying to access a folder, it would be directly redirected to a login page and after logging in, it could freely access the folder through the url.