.htacces redirect based on traffic source

Discussion in 'Apache' started by adi4x, Oct 25, 2011.

  1. #1
    adi4x, Oct 25, 2011 IP
  2. adi4x

    adi4x Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone please ? The working answer gets $5 paypal
     
    adi4x, Oct 26, 2011 IP
  3. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #3
    Something like this should work:

    
    RewriteEngine On 
    RewriteCond %{HTTP_REFERER} \.swf$
    RewriteRule .* http://www.manyfreegames.com/ [R=301,L]
    
    Code (markup):
    Just upload it to root of your ucanplay.com or add it to the end of your existing .htaccess if you already have one there. It will 301 redirect all visitors to manyfreegames.com if they have .swf at the end of referrer url.
     
    pr0t0n, Nov 1, 2011 IP
  4. luckyber12

    luckyber12 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would like to appreciate the great work done by you
    Source: friv2kizi.com
     
    luckyber12, Jul 17, 2012 IP