Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 10-16-2009, 04:27 PM   #1
Ninja Warrior
 
ninja newbie's Avatar
 
Join Date: Oct 2008
Location: Atlanta, Ga.
Posts: 75
Thanks: 20
Thanked 6 Times in 5 Posts
Social Networking View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to ninja newbie
Default Howdo I do a php redirect?

I'm sure this has probably been asked a million times already but, I need to find out how to do php redirects for my affiliate links.

ninja newbie is offline   Reply With Quote
Old 10-16-2009, 05:08 PM   #2
Steve Hawkins
War Room Member
 
TrafficMystic's Avatar
 
Join Date: Apr 2009
Location: Whitleybay, uk
Posts: 1,967
Blog Entries: 2
Thanks: 11
Thanked 923 Times in 185 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Howdo I do a php redirect?

Just like this ->

<?php
header("Location: http://www.trafficmystic.com");
exit;
?>

TrafficMystic is online now   Reply With Quote
Old 10-16-2009, 06:23 PM   #3
Active Warrior
 
bryemidas's Avatar
 
Join Date: Oct 2009
Location: London England
Posts: 60
Thanks: 10
Thanked 13 Times in 10 Posts
Social Networking View Member's Twitter Profile 
Default Re: Howdo I do a php redirect?

Hey Ninja newbie...

Try this

Open windows notepad (Start- accessories-notepad) or other text editor; create file name php redirect paste in this code


<?php
header('Location: http:// www. your affiliate link.com ');
?>

Replace the section http:// www. your affiliate link.com with you own affiliate link - Clickbank hop link or whatever.
Make sure not to remove the '); at the end of the code.

Save as product name.php so if your product is Best Cash System for example your file name would be Best-Cash-System.php

Must be saved as a php file.


Open FTP client (Filezilla for example) and in your domain public_html create a new directory (right click- create directory) and name it recommends

Still in FTP, right click drag and drop the folder product name.php from where you saved it (in your local site) to the newly created recommends directory, (in the remote site) so it can upload.

Open internet browser and type the new link into the address bar

For example your domain/ recommends/ product name.php

Remember to go back to your html editor (NVU for example) and change the link location in link properties on the actual web page so that it points correctly.

Look at the link Click Here For Instant Access on my site and you will see how the link should appear when your visitor hovers the mouse over it

It will also appear this way in view source

Check links are working and that you affiliate ID appears on the vendors sales page.

That’s it

I wish you every success

Brye

NEWS FLASH... Get Your Free!! Page Rank 7 Backlink HERE!

FREE!! Instant Google Index And Backlink Tool Here...
Get Website Traffic...
bryemidas is offline   Reply With Quote
Old 10-16-2009, 08:20 PM   #4
Advanced Warrior
War Room Member
 
Bruce Hearder's Avatar
 
Join Date: May 2004
Location: Perth, Australia.
Posts: 717
Thanks: 4
Thanked 182 Times in 138 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Bruce Hearder
Default Re: Howdo I do a php redirect?

As the guys above corrected posted the answer is :

<?php
header("Location: http://www.SiteToRedirectTo.com");
?>

But a trick for young players:

Make sure you spell the word Location with a capital "L".

After much experience with this, some hosting (especially hosting based on certain version of windows) a lower case version wont work at all, it doesn't generate an error, it just doesn't redirect at all!

So, to be safe all the time, make sure the word Location is spelt with an Uppercase "L"

Hope this helps

Bruce

-----------------
Get Your Backlinks indexed quicker at BackLinks2RSS

Create Full Text Feeds from Partial RSS Feeds at FeedExpander.com. See the WarriorForum post about it here
Bruce Hearder is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
howdo, php, redirect

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 07:37 AM.