Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Help With .htaccess and rewrite_mod

Rewrite Mod and .htaccess



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

Inactive Member
Account Expired


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 21, 1999
votes: 0

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.