<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Money-Code &#187; link redirection</title>
	<atom:link href="http://www.money-code.com/tag/link-redirection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Tue, 15 Nov 2011 18:25:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PopShop redirect all links to your domain</title>
		<link>http://www.money-code.com/2009/05/popshop-redirect-all-links-to-your-domain/</link>
		<comments>http://www.money-code.com/2009/05/popshop-redirect-all-links-to-your-domain/#comments</comments>
		<pubDate>Mon, 04 May 2009 02:14:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[link redirection]]></category>
		<category><![CDATA[popshops]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>I like to have all external affiliate links point back to my domain. I don't want to advertise lots of external links to search bots so I do some basic link cloaking back to my domain and redirect. I wanted the same effect with my PopShop products. Luckily, PopShops provides this as a feature for Enterprise users.</p>

<p>A little background, <a href="http://www.popshops.com" target="_blank">PopShops</a> is a great tool to quickly add products across various affiliate networks (CJ, ShareASale, GAN, etc). There is NOT easier way to add products to your site than PopShops, and I'm a huge fan!</p>

<p>To add link redirection you will need to do two things.</p>

<p>#1 Add a piece of code on all pages that have PopShop products.</p>

<p><code>
<?php
ob_start(); 
if (isset($_REQUEST['psps_product'])) 
	header('Location:http://r.popshops.com/'.$_REQUEST['psps_product']); 
ob_end_flush(); 
?>
</code></p>


Related posts:<ol><li><a href='http://www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/' rel='bookmark' title='Dynamic XML/RSS Feed using PopShops'>Dynamic XML/RSS Feed using PopShops</a></li>
<li><a href='http://www.money-code.com/2008/02/popshops/' rel='bookmark' title='popshops'>popshops</a></li>
<li><a href='http://www.money-code.com/2009/05/picking-and-purchasing-domain-names/' rel='bookmark' title='Picking and purchasing domain names'>Picking and purchasing domain names</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F05%2Fpopshop-redirect-all-links-to-your-domain%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F05%2Fpopshop-redirect-all-links-to-your-domain%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I like to have all external affiliate links point back to my domain. I don&#8217;t want to advertise lots of external links to search bots so I do some basic link cloaking back to my domain and redirect. I wanted the same effect with my PopShop products. Luckily, PopShops provides this as a feature for Enterprise users.</p>
<p>A little background, <a href="http://www.popshops.com" target="_blank">PopShops</a> is a great tool to quickly add products across various affiliate networks (CJ, ShareASale, GAN, etc). There is NOT easier way to add products to your site than PopShops, and I&#8217;m a huge fan!</p>
<p>To add link redirection you will need to do two things.</p>
<p>#1 Add a piece of code on all pages that have PopShop products.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">&lt;?php</span><br />
<a href="http://www.php.net/ob_start"><span class="kw3">ob_start</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>; <br />
<span class="kw1">if</span> <span class="br0">&#40;</span><a href="http://www.php.net/isset"><span class="kw3">isset</span></a><span class="br0">&#40;</span><span class="re0">$_REQUEST</span><span class="br0">&#91;</span><span class="st0">&#8216;psps_product&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/header"><span class="kw3">header</span></a><span class="br0">&#40;</span><span class="st0">&#8216;Location:http://r.popshops.com/&#8217;</span>.<span class="re0">$_REQUEST</span><span class="br0">&#91;</span><span class="st0">&#8216;psps_product&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span>; <br />
<a href="http://www.php.net/ob_end_flush"><span class="kw3">ob_end_flush</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>; <br />
<span class="kw2">?&gt;</span><br />
&nbsp;</div>
<p>#2 Adjust your PopShop shop (via PopShop&#8217;s interface) to allow Link Redirection<br />
	- Open your shop<br />
	- Click Preferences<br />
	- Click the Link Redirection tab<br />
	- Check &#8216;Have all product redirects point to your own domain.&#8217;</p>
<p>What this will do is convert links to look like this:</p>
<p>http://www.yourdomain.com/?psps_product=sp/130854/2970123463/my-product-item</p>
<p>When a user clicks the link, they will be redirected to the same page where it was created, but the hunk of code will detect &#8216;psps_product&#8217; and redirect the user to the r.popshops.com domain and on to the designated affiliate.</p>
<h4>Incoming search terms:</h4><ul><li>cloaking popshop links</li><li>cloaking popshops links</li><li>get price from popshp coding</li><li>links:[www yourdomain com]</li><li>php amazon store api</li><li>popshops com success stories</li><li>popshops programming help</li><li>popshops redirects on facebook</li><li>popshops scripts</li></ul><div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/' rel='bookmark' title='Dynamic XML/RSS Feed using PopShops'>Dynamic XML/RSS Feed using PopShops</a></li>
<li><a href='http://www.money-code.com/2008/02/popshops/' rel='bookmark' title='popshops'>popshops</a></li>
<li><a href='http://www.money-code.com/2009/05/picking-and-purchasing-domain-names/' rel='bookmark' title='Picking and purchasing domain names'>Picking and purchasing domain names</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/05/popshop-redirect-all-links-to-your-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
