War Room

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

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 10-16-2009, 04:27 PM   #1
Ninja Warrior
 
ninja newbie's Avatar
 
Join Date: Oct 2008
Location: ellenwood, ga
Posts: 77
Thanks: 21
Thanked 6 Times in 5 Posts
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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: 437
Blog Entries: 1
Thanks: 5
Thanked 46 Times in 44 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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-16-2009, 06:23 PM   #3
Warrior Member
 
Join Date: Oct 2009
Location: London England
Posts: 24
Thanks: 4
Thanked 4 Times in 4 Posts
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

Now! Dominate Your Niche... "Read My Amazing Story!" Make Money online...
bryemidas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-16-2009, 08:20 PM   #4
HyperActive Warrior
War Room Member
 
Bruce Hearder's Avatar
 
Join Date: May 2004
Location: Perth, Australia.
Posts: 406
Thanks: 2
Thanked 63 Times in 55 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 Indexed Faster, Visit PingMe Now!!, and get a FREE backlink as well!
Get Instant BackLinks To Any Site You want by running your own Blog Farm
Stop Google SideWiki from displaying unfavorable comments on your WordPress Blog. Beta testers needed for Wordpress Plugin : SideWiki Blocker
How I Get 50-150 1-way links per day, everyday : Find out what I do!
Bruce Hearder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-17-2009, 10:10 PM   #5
^___^
 
techygirl's Avatar
 
Join Date: Aug 2009
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Howdo I do a php redirect?

You can use header("Location:abc.php") to do it its pretty easy
techygirl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 09:21 AM.