Results 1 to 3 of 3
-
03-29-2004, 02:59 PM #1New Member
- Join Date
- Nov 2002
- Posts
- 3
htaccess: standard task - redirect external referer
Hi All,
I know it's trivial task but I can't find clear answer so far:
I need setup my htaccess so to have all visitors retriving binary files from external referer being redirected to specific page. That would be great to pass the file name as a parameter for that page....
Just give me a link....
Thanks!
-
03-29-2004, 04:58 PM #2Junior Guru Wannabe
- Join Date
- Jan 2003
- Posts
- 79
Code:RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite.com(/)?.*$ [NC] RewriteRule .*\.(gif|jpg|mp3|zip)$ http://www.yoursite.com/redirect.html [R,NC]
-
03-29-2004, 05:42 PM #3New Member
- Join Date
- Nov 2002
- Posts
- 3
COOL!
It works! THANKS a lot!!!
I'd better learn .htaccess syntax ....