mod rewrite for a download site

Using mod_rewrite to handle various content issues

mod rewrite for a download site

Postby » 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
that they come to a page for the download. Like this ... 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} !^* [NC]
RewriteCond %{HTTP_REFERER} !^* [NC]
RewriteRule ^(.*)$ ... ilename=$1
Posts: 1
Joined: Sun Aug 03, 2003 12:50 pm

Return to Content

Who is online

Users browsing this forum: No registered users and 2 guests