add Mint to track image (resizes and full sizes)
CX7
Joined: 2011-01-05
Posts: 7 |
Posted: Thu, 2011-03-31 13:19 |
Hi all I want to implement my Mint stats download tracker for all requests concerning resizing and full size viewing/downloading (not thumbnails). currently I use the script to track visitors but I want to see bandwidth and popularity too. Here are a few options: Example 1: Redirect all file requests in this directory and subdirectories, if the requested file exists. Example 2: Redirect only file requests that end with .zip, .rar or .tar.gz in this directory and subdirectories, if the requested file exists. Example 3: Redirect file requests in this directory and sub-directories that end with .mp3 or .pdf, and “display” them inline. Note: Use the &force parameter to avoid an infinite loop. Furthermore: Example: http://minteddomain.com/mint/pepper/tillkruess/downloads/tracker.php?url=http://minteddomain.com/archive.zip --- I've tried to use .htaccess within the re-sizes gallery dir and the albums gallery dir. however it doesn't want to track. I'm watching the URL's and it is not going through the extra rewrite parameter. Any ideas? Thanks! |
|
Posts: 7
hi all
I've had a bit more of a play with this. I think htaccess maybe the best way to go to for a rewrite on the file url being requested.
I can't seem to get the REQUEST_URI or REQUEST_FILE to pass the correct location. I can see it is going through the script but no images load and the script is not taking it as a hit because of this.
Any thoughts?
Thank you