Koozali.org: home of the SME Server

.htaccess, mod rewrite engine issues

Donnie

.htaccess, mod rewrite engine issues
« on: July 22, 2003, 05:05:42 AM »
I am trying to get mod rewrite to work properly from an ibay. I haven't had much luck. Essentially what I want to happen is when someone links to an MP3 on my server, they get another mp3 instead. Basically, I'm attempting to prevent leeching of my mp3s.

Here is the .htaccess file:
---------------------
AuthUserFile /dev/null
AuthGroupFile /dev/null

Options +FollowSymLinks

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://domain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domian.com/ [NC]
RewriteRule /* http://www.domain.com/filename.mp3 [L,R]

-------------------------

What happens now is when you try to access the ibay via http://www.domian.com/ibay you are automatically redirected to filename.mp3. This isn't what I want to happen. I just want those that link to my mp3s (or any other file for that matter) from another site to get the bogus mp3.

I am running the lastest version of the htaccess mod from the nightspirit site. I'm running SME 5.6.

Any help would be appreciated.

Thanks,

Donnie