8
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 don’t understand almost anything about htacess, could anyone help me to, other than block off access, release through some condition, for example via GET, or better still via $_SESSION, access to a folder?
Action: When trying to access a folder directly, it would be redirected to a login page and after logging in it could access the folder freely through the url.
No one????????
– Lollipop
you want to free access to the objects contained in the folder for a specific user, type it can make a request to a particular php page or a set of pages within a folder, that’s it?
– Intruso
HTTP authentication? http://httpd.apache.org/docs/2.2/howto/auth.html
– Lucas
Yes! Before I block and then release with this request!
– Lollipop
@Lucas, HTTP authentication with mod_ssl? Like I have to mess with the terminal? If so, isn’t that it.
– Lollipop
I had to use the terminal to create the password file. And it was about ssl yes
– Lucas
Know how to pass PHP parameters, via GET, for a variable there in htacess?
– Lollipop
I think you do. Have a look here http://zenverse.net/capture-query-string-get-data-in-htaccess-rewrite/
– Lucas