Strange htaccess problem

Ask your mod_rewrite and Redirection questions here, and get answers!

Strange htaccess problem

Postby steven365247 » 17 May 2008 10:07

I have a directory with movies protected by the following htaccess file

---
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*mydomain.com/ [NC]
RewriteRule /* http://%{HTTP_HOST}/ [R,L]
---

The idea is that you can't directly access the dir with the movies, you have to come from mydomain.com.

The protection works fine, no problem there.

However, if I try to download a movie using 'save target as', I can't. I get a html file in stead of the avi or mpg.

I have no idea how to fix this. Any ideas? Thanks in advance.
steven365247
 
Posts: 1
Joined: 17 May 2008 10:02

Return to Redirect or Rewrite Questions



Who is online

Users browsing this forum: clerkfurniture, HIBcokyacrornsap, ShakhtarrDon, VocrepeAcceby, Zitioutbava