GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   looking for a redirect script for longurls... (https://gfy.com/showthread.php?t=853988)

Angry Jew Cat - Banned for Life 09-09-2008 11:44 PM

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 09-10-2008 12:10 AM

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

Angry Jew Cat - Banned for Life 09-10-2008 12:25 AM

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.

Bro Media - BANNED FOR LIFE 09-10-2008 12:47 AM

<?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.

bobby666 09-10-2008 12:48 AM

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