Results 1 to 3 of 3
  1. #1

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


  2. #2
    Join Date
    Jan 2003
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?*$     [NC]
    RewriteRule .*\.(gif|jpg|mp3|zip)$ [R,NC]
    Change yoursite to... uh... your site and change redirect.html to where you want them to be redirected to.

  3. #3

    Thumbs up COOL!

    It works! THANKS a lot!!!

    I'd better learn .htaccess syntax ....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts