Welcome to WebmasterWorld Guest from 54.205.74.11

Forum Moderators: Ocean10000 & incrediBILL & phranque

Help With .htaccess and rewrite_mod

Rewrite Mod and .htaccess

   
8:51 am on Jan 27, 2002 (gmt 0)

10+ Year Member



I currently have a web site that has .MPG's in one directory called ./ls, ./hs, and ./real. I want to make it where the user can download the file, but if i have the following,
AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com [NC]
RewriteRule /* [mydomain.com...] [R,L]

It will let the file go to the Windows Media Player. But Windows Media Player won't beable to read it. I want the users to be able to access the files and not have people hot link, I tried a cookie, but it didn't work correctly.

Please Help...

6:05 pm on Jan 30, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We're pleased you decided to join us jwsmith, welcome! Since I'm not sure about the answer to your question, I ignored it for a few days hoping someone would jump in with a solution, no luck though :(

I think your question involves both mod_rewrite issues and MIME/file type issues. Is it possible your server is not configured to serve a windows media file? This page [bignosebird.com] describes how to add a "MIME type" to the server's configuration which may solve your problem.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month