Posted by gosha bine on 08/23/07 18:15
rogerjames1@googlemail.com wrote:
> How would I go about protecting a whole directory, e.g.
> http://www.example.com/members/ and all sub-directories with login
> protection? I wouldn't like to put a .php script in each directory and
> I'd like to protect all file-types
>
You can use mod_rewrite to redirect every request to index.php, e.g.
RewriteRule .* index.php?file=$0 [L,QSA]
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
[Back to original message]
|