{"id":141,"date":"2010-04-14T02:39:01","date_gmt":"2010-04-13T18:39:01","guid":{"rendered":"http:\/\/www.leadsleap.com\/blog\/a-simple-trick-to-stop-backlink-leak\/"},"modified":"2010-04-14T02:39:01","modified_gmt":"2010-04-13T18:39:01","slug":"a-simple-trick-to-stop-backlink-leak","status":"publish","type":"post","link":"https:\/\/leadsleap.com\/blog\/a-simple-trick-to-stop-backlink-leak\/","title":{"rendered":"A Simple Trick To Stop Backlink Leak"},"content":{"rendered":"<p>If you run your own affiliate program, and also build traffic from search  engine, today&#8217;s tip will be very useful to you.<\/p>\n<p>Most affiliate links look something like this:<\/p>\n<p>www.yourProgram.com?r=referid<\/p>\n<p>With a good affiliate program, you can easily get hundreds or thousands of  websites linking to your homepage through the customized affiliate links.<\/p>\n<p>Does it mean you have hundreds or thousands of backlinks pointing to your  homepage? Sad to say, NO!<\/p>\n<p>Search engines treat www.yourProgram.com?r=referid as a new url that is  different from www.yourProgram.com. So when someone links to  www.yourProgram.com?r=referid, it is as good as linking to another url on your  website. That link will not count as a backlink to your homepage.<\/p>\n<p>Fortunately, there is a simple trick to overcome this problem. It&#8217;s by using 301  redirect.<\/p>\n<p>301 redirect means &#8220;permanently moved&#8221;. When you add 301 redirect on  www.yourProgram.com?r=referid, pointing it to www.yourProgram.com, you are  telling the search spiders that the referral url has permanently moved to your  homepage.<\/p>\n<p>301 redirect is search engine friendly. The search engines understand that since  a url is permanently moved to another url, all the links on the former url  should now belong to the new url.<\/p>\n<p><strong>How To Create 301 Redirect?<\/strong><\/p>\n<p>This is a technical question and I will not go into the details. There are many  technical blogs and forums on the net where you can get the details. In this  article, I&#8217;ll just show you what I use for my own websites. It&#8217;s a simple PHP  script that I add to the index.php file of my websites.<\/p>\n<p>&lt;?<br \/>\nif ($r &lt;&gt; &#8220;&#8221;) {<br \/>\nheader( &#8220;HTTP\/1.1 301 Moved Permanently&#8221; );<br \/>\nheader(&#8220;Location: http:\/\/www.yourProgram.com&#8221;);<br \/>\nexit();<br \/>\n}<br \/>\n?&gt;<\/p>\n<p>This script simply says if ?r=[someReferID] exist, i.e. if it&#8217;s an affiliate  link, add 301 Redirect on that page and redirect it to your homepage.<\/p>\n<p>With this code, the search engine will ignore the referral url and credit all  the backlinks to your homepage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you run your own affiliate program, and also build traffic from search engine, today&#8217;s tip will be very useful to you. Most affiliate links look something like this: www.yourProgram.com?r=referid With a good affiliate program, you can easily get hundreds or thousands of websites linking to your homepage through the customized affiliate links. Does it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[179],"_links":{"self":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":0,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}