Authenticate after Rewrite
am 16.06.2007 18:55:38 von Kevin KempferHello,
I would like to have Apache authenticate the user _after_ there has
been URL Rewriting.
What should happen is this, not sure if this is possible:
1. The browser request: http://server/directory_1
2. URL-Rewriting makes: http://server/index.php?directory=1
3. Based on the value of directory (here: 1) the user should
authenticate himself.
So I have multiple virtual directories which all rewrite to a single
script (with different parameters). But all of them should
authenticate the user. A user who authenticated successfully on
directory_1 should *not* be able to access directory_2 (). This means
every virtual directory has its own AuthUserFile.
Guess the question is: Is it possible to do authentication based on a
rewritten URL?
something like
directory_1 doesn't really exist.
Thanks for ideas,
Kevin