mod rewrite for a download site

Using mod_rewrite to handle various content issues

mod rewrite for a download site

Postby marcel@kraan.net » Sun Aug 03, 2003 12:53 pm

I have a movie download site and what i need is that if users are linking my files
(like http://www.eengoedidee.nl/videoz/bmx/jib.mpg)
that they come to a page for the download. Like this
http://www.eengoedidee.nl/videoz/downlo ... me=jib.mpg

So i don't want direct linking but always via the download.cgi

If i'am using this .htaccess (below) it seems to work but..
I could not save the files anymore the filenames are changed
from jib.mpg to jib.mpg.html
And i could only save HTML
Maby because 'downloading' is for every user a external link???

Does someone have a solution?
please email me also..


RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.eengoedidee.nl.* [NC]
RewriteCond %{HTTP_REFERER} !^http://eengoedidee.nl.* [NC]
RewriteRule ^(.*)$ http://www.eengoedidee.nl/videoz/downlo ... ilename=$1
marcel@kraan.net
 
Posts: 1
Joined: Sun Aug 03, 2003 12:50 pm

Return to Content

Who is online

Users browsing this forum: No registered users and 1 guest

cron