![]() |
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?
|
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"); ?> |
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. |
<?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. |
i only know tinyurl.com
|
All times are GMT -7. The time now is 11:48 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123