way to check referral address in .htaccess

Discussion in 'Site & Server Administration' started by vetting, Dec 27, 2007.

  1. #1
    I need to modify my htaccess for one of my directories to accomplish the following.

    If the word mail appears anywhere in the referral address, then it needs to be redirect to site a

    If there is not a referral address or the referral address does not contain the word mail, then redirect to site b

    Thank you for your help
     
    vetting, Dec 27, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    I think only a script can do that.
     
    Nintendo, Dec 31, 2007 IP