0

我在我的 Dropbox(免费托管)中公开共享一个 .ics 文件,并希望跟踪我的社区对它的使用情况。

Dropbox 无法做到这一点,所以我在 NearlyFreeSpeech.net 的静态页面上设置了AWStats,目的是从http://www.mydomain.com/files/calendar.ics隐身重定向到https://dl .dropboxusercontent.com/u/XXXXXXX/calendar.ics

(a) 我的.htaccess重定向不起作用:

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

(b) 我可以在我的 nfsn-awstats.conf(类似于 awstats.config)中添加什么部分来跟踪我的重定向(#downloads_from_unique_IP_addresses 和 #downloads)的使用情况。

谢谢!

4

1 回答 1

0

尝试不带前导斜杠:

RewriteRule ^files/calendar\.ics$ https://dl.dropboxusercontent.com/u/XXXXXXX/calendar.ics [L,NC,R]
于 2013-12-23T02:19:55.240 回答