Return to Snippet

Revision: 26579
at May 3, 2010 03:02 by ginoplusio


Initial Code
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.mp3$ /proxy.php?z=$1.mp3 [QSA]

Initial URL
http://www.barattalo.it/2010/05/02/10-htaccess-usefull-tips/

Initial Description
Redirects all calls to mp3 files to a proxy (usefull fr example to track stats on db) the +FollowSymlinks should be already setted, but if it isnt' this setting with use it. FollowSymlinks must be on to use the rewrite engine.

Initial Title
Htaccess to redirect all calls to mp3 files to a PHP proxy

Initial Tags
htaccess

Initial Language
Other