URL Shortener Tracking

Hello there,

I’ve seen this before but I didn’t really understand how I can do this. Can you please point me out to the right direction?
I mainly want to track the redirects, so basically the links created through my custom made URL Shortener script…

Thank you!

how works that url shortener script?

[quote=christophe195]
how works that url shortener script?[/quote]

Hello,

Thank you for your reply,

It is a simple php 301 redirect script like this:


header('HTTP/1.1 301 Moved Permanently');  
header("Location: ".$link);

So for example when you visit link.me/s92 it will redirect you to firefox.com

Thank you!

<?php MYSQL ?> www.google.be <?php header('HTTP/1.1 301 Moved Permanently'); header("Location: ".$link); ?>

Heh that would be too easy :slight_smile:
It doesn’t really work…

Maybe use the PHP API to set a page-scope custom variable?

This is what I am trying to do, but it is the first time I am playing with API and I didn’t really figure much stuff out yet :confused: