Need a way to redirect through htaccess if referrer contains the word mail

Discussion in 'Apache' started by vetting, Dec 30, 2007.

  1. #1
    Everyone on the board has been really helpful and has answered a lot of my questions. Only have one more to get one of my sites working correctly.

    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 30, 2007 IP