1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To make a multisite redirect???

Discussion in 'Black Hat SEO' started by OgSneakyPimp, Apr 24, 2009.

  1. OgSneakyPimp

    OgSneakyPimp Junior Member

    Joined:
    Aug 4, 2008
    Messages:
    164
    Likes Received:
    168
    Occupation:
    THE BOSS (thats all you need to know)
    Location:
    im in every hood
    ok i have been redirecting my links using the .htaccess like this

    Example

    Code:
    Redirect /Pimping-these-Hoes/ http://www.Pimpinainteasy.com?Affiliate id
    is there a way that i can have it so that 50% of the time it redirects to

    Code:
    [URL="http://www.pimpinainteasy.com/?Affiliate"]http://www.pimpin-aint-easy.com?affiliateid[/URL]
    and the other 50% it redirects to

    Code:
    [URL="http://www.pimp-in-distress.com/?Affiliate"]http://www.Pimp-in-distress.com?Affiliateid[/URL]
    that way every time someone clicks on the link it redirects them to a new affiliate product i am promoting???
     
  2. MakeLemonade

    MakeLemonade Junior Member

    Joined:
    Mar 30, 2009
    Messages:
    148
    Likes Received:
    67
    .htaccess:
    Code:
    RewriteEngine On 
    RewriteRule   /page/.*$ /page/page.php 
    Then in page.php:
    Code:
    <?php
    if (rand(0,1)) {
      [COLOR=#000000][COLOR=#0000bb]header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'Location: hxxp://www*pimpin-aint-easy.com?affiliateid'[/COLOR][COLOR=#007700]);[/COLOR][/COLOR]
    } else {
      [COLOR=#000000][COLOR=#0000bb]header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'Location: hxxp://www*Pimp-in-distress.com?Affiliateid'[/COLOR][COLOR=#007700]);[/COLOR][/COLOR]
    }
    ?>
    Note that /page/ is your directory relative to .htaccess. This is untested but should work.
     
    • Thanks Thanks x 1
  3. OgSneakyPimp

    OgSneakyPimp Junior Member

    Joined:
    Aug 4, 2008
    Messages:
    164
    Likes Received:
    168
    Occupation:
    THE BOSS (thats all you need to know)
    Location:
    im in every hood
    cool thanks ill give it a try ......

    hahaha i just found out one of those fake url's above is real hahaha OOops:eek::p:D:):eek::eek: