View Single Post
Old 08-24-2006, 12:50 PM  
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
Quote:
Originally Posted by wedouglas
Would you mind posting the contents of said file? With just like one example url left in. I am clueless in php.
Well mine is a little complicated as I go to random POTD sites etc. if there's an invalid site name and I also insert campaign codes on the fly..

but a simple version would be something like this

Code:
<?php
	$q=strtolower(trim($_SERVER["QUERY_STRING"]));
	$url["adultpaymaster"]="http://www.adultpaymaster.com/";
	$url["nastydollars"]="http://www.nastydollars.com/";
	if($url[$q] != ""){
		@header("Location: $url[$q]");
		exit;
	}
	@header("Location: http://somedeafulturl.com/");
?>
name it index.php.. drop it on some directory like /go2/

call them like /go2/?nastydollars
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote