Download stats of file hosted at a domain other than my website

104 views Asked by At

I'm publicly sharing an .ics file in my Dropbox (free hosting) and want to track it's use by my community.

Dropbox has no way of doing this, so I've setup AWStats on a static page at NearlyFreeSpeech.net with the intention of stealth redirecting from http://www.mydomain.com/files/calendar.ics to https://dl.dropboxusercontent.com/u/XXXXXXX/calendar.ics.

(a) my .htaccess redirect won't work:

RewriteRule /files/calendar.ics https://dl.dropboxusercontent.com/u/XXXXXXX/calendar.ics [PT]

(b) What section can I add to my nfsn-awstats.conf (analogous to awstats.config) to track the use of my redirect (#downloads_from_unique_IP_addresses and #downloads).

Thanks!

1

There are 1 answers

2
anubhava On

Try without leading slash:

RewriteRule ^files/calendar\.ics$ https://dl.dropboxusercontent.com/u/XXXXXXX/calendar.ics [L,NC,R]