Authenticate after Rewrite

Authenticate after Rewrite

am 16.06.2007 18:55:38 von Kevin Kempfer

Hello,

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 where
directory_1 doesn't really exist.

Thanks for ideas,

Kevin

Re: Authenticate after Rewrite

am 16.06.2007 19:22:37 von unknown

Post removed (X-No-Archive: yes)

Re: Authenticate after Rewrite

am 16.06.2007 22:00:44 von Kevin Kempfer

On Jun 16, 7:22 pm, Davide Bianchi
wrote:
> Then manage the authentication in your PHP script.
> Davide

Does Apache support what I like to do?

Kevin