Login to use this feature.
15760
2D Graphics
2238
3D Graphics
176
Audio Editing
189
Databases
2944
Miscellaneous
4664
Operating Systems
320
Video Editing
7003
Website Development
|
|
April 3rd, 2019
Contact Us page now working!
March 24th, 2019
Tutorial avatars uploading issue fixed
March 22nd, 2019
IP Blacklist banning issue
March 20th, 2019
Operation Fix P2L - March 19th Update
June 15th, 2018
Guess who's coming back to P2L?
|
PHP:
$aff = $_GET['n'];
$affiliates = array(
'myfriend' => 'myfriendsite.com',
'google' => 'google.com',
);
if (isset($affiliates[$aff])
{
header('Location: http://' . $affiliates[$aff]);
}
else
{
header('Location: http://mysite.com');
}
?>
.htaccess
RewriteRule ^go/([a-z])$ /redirect.php?n= [NC,L]
By the way, you forgot the dot in redirect.php in your .htaccess file.
I must appreciate you for the information you have shared.I find this information very useful and it has considerably saved my time.thanks
Buy Articles | Life Experience Degree | bachelor degree | Sample Essays | write articles