1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to make mask outgoing links on WordPress like ones on John Chow website?

Discussion in 'General Business' started by Xin, May 27, 2011.

  1. #1
    Does anyone know how to mask outgoing links on WordPress blogs so it looks like the following:

    Ex: websitename.com/google

    Instead of

    google.com
     
    Xin, May 27, 2011 IP
  2. Kiopa_Matt

    Kiopa_Matt Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    bit.ly will do that for you.

    Or if wanted, buy xMarkPro (google it -- not allowed to post links yet), and it contains full link tracking functionality.
     
    Kiopa_Matt, May 28, 2011 IP
  3. UncleP

    UncleP Well-Known Member

    Messages:
    138
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    135
    #3
    The easiest way is to make a folder (directory) in your site called "google" and then put an index.php page in there with php redirect code so the full url would be websitename.com/google and when visited would load the redirect index and send the visitor to the desired url.

    Obviously change the names to suit your requirements.

    The redirect index.php page should be:
    <?php
    
    header('Location:http://www.google.com');
    
    ?>
    Code (markup):
    If you wanted to track the visitors use an index.html page with a meta redirect and put the tracking script (statcounter?) in the body of the page, it's a bit longer and not so fast to redirect but it works still.
    redirected index.html:
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Redirecting</title>
    <meta name="robots" content="noindex, nofollow, noarchive">
    <meta http-equiv="Refresh" content="0; URL=http://www.google.com">
    </head>
    
    <body>
    Loading...
    
    <!-- counter code here -->
    </body></html>
    
    Code (markup):
     
    UncleP, Jun 1, 2011 IP
  4. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #4
    Grit., Jun 4, 2011 IP
  5. gogoty

    gogoty Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Bit.ly is the best + you get revenue for redirects.
     
    gogoty, Jun 4, 2011 IP