![]() |
| ||||||||
|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Ninja Warrior
Join Date: Oct 2008
Location: ellenwood, ga
Posts: 77
Thanks: 21
Thanked 6 Times in 5 Posts
|
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.
|
|
|
|
|
|
|
|
|
#3 |
|
Warrior Member
Join Date: Oct 2009
Location: London England
Posts: 24
Thanks: 4
Thanked 4 Times in 4 Posts
|
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...
|
|
|
|
|
|
|
#4 |
|
HyperActive Warrior
War Room Member
Join Date: May 2004
Location: Perth, Australia.
Posts: 406
Thanks: 2
Thanked 63 Times in 55 Posts
|
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! |
|
|
|
|
|
|
#5 |
|
^___^
Join Date: Aug 2009
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
|
You can use header("Location:abc.php") to do it its pretty easy
|
|
|
|
![]() |
|
| Tags |
| howdo, php, redirect |
| Thread Tools | |
|
|
![]() |