homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Help With .htaccess and rewrite_mod
Rewrite Mod and .htaccess

10+ Year Member

Msg#: 442 posted 8:51 am on Jan 27, 2002 (gmt 0)

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...



WebmasterWorld Senior Member 10+ Year Member

Msg#: 442 posted 6:05 pm on Jan 30, 2002 (gmt 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved