Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite and mod_auth

         

askthefool

10:44 am on Mar 31, 2006 (gmt 0)



Is it possible to password protect "virtual directories". For example, http://example.com/apple/ is actually index.php?page=apple. Is there some way to password protect the /apple/ "virtual" directory?

sacx13

12:28 pm on Mar 31, 2006 (gmt 0)

10+ Year Member



Yes ... but you need to manage the code for that.

Read This:
[php.net...]

extras

3:21 pm on Mar 31, 2006 (gmt 0)

10+ Year Member



You can actually create that directory and password protect it.
It should work as you wanted, since auth happens before RewriteRule processing.