![]() | | ||||||||
| | #1 |
| HyperActive Warrior War Room Member Join Date: Jun 2008 Location: Melbourne, Victoria, Australia
Posts: 190
Thanks: 16
Thanked 5 Times in 4 Posts
|
Hey all, Just a quick question. How do you redirect an affiliate link as, http://yoursite.com/recommends... ie. how do you get the recommends (or any other word) up there? Cheers, Johnson. |
| | |
| | #2 |
| TheUniversityKid.com War Room Member Join Date: Nov 2007 Location: Bangalore
Posts: 380
Thanks: 32
Thanked 57 Times in 33 Posts
|
Create a folder in your cPanel under root, call it whatever you want. Under that folder create php files for each product you want to promote. So bloggingtothebank.php , wsooffer.php and so on. The code you need to use: Code: <?php
header("location:http://www.youraffiliatelink.com/?id=123");
exit;
?> Or... create a folder called productname under your recommends folder, and use the same code above in a file called index.php You can then link to www.yoursite.com/recommends/wsooffer |
| | |
| | |
| | #4 |
| Active Warrior War Room Member Join Date: Aug 2008 Location: Johannesburg, South Africa
Posts: 36
Thanks: 31
Thanked 6 Times in 5 Posts
|
Another way is to create redirects in the .htaccess file. Redirect /recommends/productone product1.com Redirect /recommends/producttwo http://product2.com/?=youraffiliatecode This way they're all in one place, so it's easy to update them if necessary. The '/recommends' folder does not actually need to exist. Here is a blog post which goes into a bit more detail: Using .htaccess Redirects for Affiliate Links .htaccess It's probably a good idea to add the '/recommends' folder to the robots.txt disallow list. |
| | |
| | |
| | #5 |
| Banned Join Date: Apr 2009
Posts: 58
Thanks: 38
Thanked 17 Times in 5 Posts
|
Simply make a new folder under public_html in cPanel. Then you need to create a PHP file with the following code in it: Code: <?php echo "<meta http-equiv="refresh" content="0;url=http://websiteurl.com">"; ?> - Lokesh Sharma |
| | |
| | #6 | |
| HyperActive Warrior War Room Member Join Date: Jun 2008 Location: Melbourne, Victoria, Australia
Posts: 190
Thanks: 16
Thanked 5 Times in 4 Posts
| Quote:
You'll probably ignore this but I'm sure it'll get a lot of traffic to a website you own. Could you show how to do that above in a video? Or do you know any videos that do that? Cheers, Johnson. | |
| | |
| | #7 | |
| HyperActive Warrior War Room Member Join Date: Jun 2008 Location: Melbourne, Victoria, Australia
Posts: 190
Thanks: 16
Thanked 5 Times in 4 Posts
| Quote: Is there a way to contact Andy Fletcher here on the Warrior Forum? I emailed him from freelinkcloaker.com a couple weeks back but he hasn't replied yet. Cheers, Johnson. | |
| | |
| | #8 | |
| Advanced Warrior War Room Member Join Date: Nov 2006 Location: Spokane, WA
Posts: 550
Blog Entries: 4 Thanks: 216
Thanked 54 Times in 40 Posts
| Quote:
| |
| | ||
| | |
| | #9 |
| Senior Warrior Member War Room Member Join Date: May 2005 Location: , , .
Posts: 1,100
Thanks: 11
Thanked 36 Times in 22 Posts
| |
| | |
| | |
| | #10 | |
| HyperActive Warrior War Room Member Join Date: Jun 2008 Location: Melbourne, Victoria, Australia
Posts: 190
Thanks: 16
Thanked 5 Times in 4 Posts
| Quote:
I'm almost there. When you're making the php file, do just use notepad and when you're saving it, do you just call it productname.php? Because I did that and for some reason or another, it's not working... Cheers, Johnson. | |
| | |
| | #11 |
| HyperActive Warrior War Room Member Join Date: Jun 2008 Location: Melbourne, Victoria, Australia
Posts: 190
Thanks: 16
Thanked 5 Times in 4 Posts
|
Actually no problem. I didn't know the address was case-sensitive. cheers. Johnson. |
| | |
| | #12 |
| Warrior Member Join Date: Jun 2009
Posts: 13
Thanks: 6
Thanked 1 Time in 1 Post
|
I use GoCode plugin for Wordpress... works great Can't post working links yet but here is the url webmaster-source.com/gocodes-redirection-plugin-wordpress/ |
| | |
| | |
![]() |
|
| Tags |
| johnson, johnson kee |
| Thread Tools | |
| |
![]() |