You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Suba Arunkumar <su...@yahoo.com> on 2003/06/04 07:30:17 UTC

[users@httpd] Rewrite rule for Apache1.3, Mandrake9.1

I am using Mandrake 9.1 with apache 1.3, i have
implemented the below listed rewrite condition and it
does't work. I have updated this rule in
commonhttpd.conf, httpd.conf, httpd-perl.conf,
vhosts.conf but it doesn't work. can any one please
help me to identify what is wrong. I used the same
settings in Redhat 9.0 apache 2.0 and it works fine.

<Directory "/var/www/html/test/mp3">
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER}
!^http://(www\.)?website.com/.*$ [NC]
RewriteRule \.(mp3|m3u)$
http://www.website.com/copy.html [R,L]
</Directory>


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org