The Most Active and Friendliest
Affiliate Marketing Community Online!

“AdsEmpire”/  Direct Affiliate

Cool Simple Re-Direct Code

Scripter

New Member
affiliate
Here a little code, but cool
smile.gif


<?
if(!$area)
$area = 'main';

if(file_exists("$area.htm"))
include("$area.htm");
else
die("Area not found.");
?>

with this code, you can make something like this:
link.php?area=downloads
so, by this link, you will be redirected to downloads.htm, its dinamic, I really love it
 
Now write little code to redirect affiliate links...

Let's say I have affiliate url: affiliate_company.com/some_affiliate_code_here.php?123

On my site I want link to look like just internal page of my site: my_site.com/affiliate_company.html

How do I do that?
 
I made a directory on my site called vbseo/
and i put this in the index.php there :

PHP:
<?php

Header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://www.vbseo.com/999/"); 

?>

where the 999 is my affiliate code. :D

The URL the user visits would be geekpoint.net/vbseo/
it redirects to vbseo.com/999/
which further gets redirected to vbseo.com/purchase/

So, the user doesn't get to see the actual referral link. :D
 
Last edited:
MI
Back