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

How To Get A 301 Redirect To #1 Spot For Competitive Keyword?

Discussion in 'Black Hat SEO' started by testoman, Feb 22, 2013.

  1. testoman

    testoman Registered Member

    Joined:
    Oct 11, 2008
    Messages:
    97
    Likes Received:
    11
    Occupation:
    manwhore
    I've been seeing a couple of these lately in my niche, the domain is 1 month old and the number #1 spot in google for a competitive keyword. Yet when you click the link it 301 redirects to the sales page, but if you enter the url in your address bar it takes you to a 1 page website.

    How are they doing this?
     
  2. Narrator

    Narrator Power Member

    Joined:
    Oct 5, 2010
    Messages:
    507
    Likes Received:
    396
    Occupation:
    Internet Marketing
    Location:
    /dev/null
    Could be looking at the referrer in the headers and redirecting the search engine traffic to the sales page.
     
    • Thanks Thanks x 1
  3. SmartMan

    SmartMan BANNED BANNED

    Joined:
    Jul 25, 2012
    Messages:
    673
    Likes Received:
    1,244
    It's done via .hatccess

    The following code redirects you to another url if the Referer is Google.com

    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://google\.com
    RewriteRule .* http://www.theirsalespageurl.com [R=301,L]
    
     
    • Thanks Thanks x 2
  4. Narrator

    Narrator Power Member

    Joined:
    Oct 5, 2010
    Messages:
    507
    Likes Received:
    396
    Occupation:
    Internet Marketing
    Location:
    /dev/null
    Beat me to it! I wrote a quick php example but I'll post it anyways
    Code:
    
    $referer=$_SERVER['HTTP_REFERER'];
    $test=strpos($referer,'google');
    if($test!=false){
    header('Location: http://www.yoursite.com/moneypage',true,301);
    exit;
    }
    
    
    
    302 redirect may better though.

    Cheers!
     
    • Thanks Thanks x 2