looking for a redirect script for longurls...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Angry Jew Cat - Banned for Life
    (felis madjewicus)
    • Jul 2006
    • 20368

    #1

    looking for a redirect script for longurls...

    looking for a redirect script that will cloak and track my long affiliate urls. i have a couple clicktrackers that will give me domain.com/clicks.php&id=21 type links, but i'm looking around trying to find something that'll give me a nice domain.com/shorturl/ or domain.com/shorturl.html/php whatever. anyone got something along these lines?
  • nekrom
    Confirmed User
    • Mar 2004
    • 921

    #2
    One easy way is to take your long click tracking url and put it into a php redirect file. So you end up with domain.com/niche.php

    Code:
    <?php header("Location: trackingurlhere"); ?>
    -N
    Last edited by nekrom; 09-09-2008, 11:11 PM.
    Free Traffic

    Comment

    • Angry Jew Cat - Banned for Life
      (felis madjewicus)
      • Jul 2006
      • 20368

      #3
      never thought of that. that would work perfectly fine.

      if i can't come up with a script that handles it all as one, i'll just get on with it that way.

      thanks.

      Comment

      • Bro Media - BANNED FOR LIFE
        MOBILE PORN: IMOBILEPORN
        • Jan 2004
        • 16502

        #4
        <?php
        $url['name'] = "http://site.com";
        $url['anothername'] = "http://anothersite.com";

        header("location: ".$url[$_GET['goto']]);
        ?>

        quick and dirty, will make page.php?goto=name goto http://site.com
        can use htaccess to make it yoursite.com/goto/name.html if you want too.

        Comment

        • bobby666
          boots are my religion
          • Nov 2005
          • 21765

          #5
          i only know tinyurl.com

          Comment

          Working...