Quote:
Originally Posted by Captain Kawaii
I like the masking technique of the ref codes the most. Wish I knew how he does that. Cool beans.
|
Basic concept:
Code:
<?php
$sites = array(
'site1' => 'http://www.site1.com',
'site2' => 'http://www.site2.com
);
$site = $_GET['site'];
header('Location: ' . $sites[$site]);
?>
Then you just call it, yoursite.com/redirect.php?site=site1 and use like htaccess to rewrite it to be yoursite.com/go/site1