Forum Moderators: phranque

Message Too Old, No Replies

Redirect to 2 targets at the same time?

Newbie question

         

normen

9:48 pm on Jun 22, 2004 (gmt 0)

10+ Year Member



I was wondering if there is a way in the .htaccess to redirect (or better split up) an HTTP request for a file (i.e. batch.zip) to the .zip file for download and at the same time to another file (i.e. log.php, which logs parameters)? My goal is to have the user download the file from a protected folder whereas I can process the information the user has given me, or simply the fact that the user logged in and accessed that file.
Any help would be appreciated.

jdMorgan

2:21 am on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, this isn't possible the way you describe it.

One thing that will help you is to remember that the server serves (like a restaurant waiter) and the client is the customer. The client (browser) issues one (HTTP) request, and will accept only one answer.

Jim