<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: URL Masking (cloaking)</title>
	<atom:link href="http://www.money-code.com/2007/10/url-masking-cloaking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com/2007/10/url-masking-cloaking/</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Wed, 15 Jun 2011 08:44:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Damir-ElggFactory</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-988</link>
		<dc:creator>Damir-ElggFactory</dc:creator>
		<pubDate>Mon, 14 Feb 2011 05:35:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-988</guid>
		<description>HI,
I know this is older topic but I&#039;ve been wanting to cloak ebay item links from rss feed for a while with no success.
I&#039;m using RSS2HTML parser on Wordpress and php code for my search form.

I&#039;m not understanding how to pass individual items from rss feed to (your example: http://www.money-code.com/ebay.php) . Won&#039;t url need to be  /ebay.php?item=165423 or something like that to redirect to that item page on ebay?

Is there an example of working code somewhere?

Thanks a bunch.</description>
		<content:encoded><![CDATA[<p>HI,<br />
I know this is older topic but I&#8217;ve been wanting to cloak ebay item links from rss feed for a while with no success.<br />
I&#8217;m using RSS2HTML parser on WordPress and php code for my search form.</p>
<p>I&#8217;m not understanding how to pass individual items from rss feed to (your example: <a href="http://www.money-code.com/ebay.php" rel="nofollow">http://www.money-code.com/ebay.php</a>) . Won&#8217;t url need to be  /ebay.php?item=165423 or something like that to redirect to that item page on ebay?</p>
<p>Is there an example of working code somewhere?</p>
<p>Thanks a bunch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bridgett Salle</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-782</link>
		<dc:creator>Bridgett Salle</dc:creator>
		<pubDate>Wed, 09 Dec 2009 02:04:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-782</guid>
		<description>Hey! Quick question!
How would you code multiple links using the PHP page??
.-= Bridgett Salle´s last blog ..&lt;a href=&quot;http://googletomakemoney.com/google-profit-system/&quot; rel=&quot;nofollow&quot;&gt;Google Profit System&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>Hey! Quick question!<br />
How would you code multiple links using the PHP page??<br />
.-= Bridgett Salle´s last blog ..<a href="http://googletomakemoney.com/google-profit-system/" rel="nofollow">Google Profit System</a> =-.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: milch</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-723</link>
		<dc:creator>milch</dc:creator>
		<pubDate>Tue, 06 Oct 2009 21:52:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-723</guid>
		<description>I only have access to the html docs folder, but none of the main apache configuration, hence my dilemma.</description>
		<content:encoded><![CDATA[<p>I only have access to the html docs folder, but none of the main apache configuration, hence my dilemma.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-715</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 02 Oct 2009 01:54:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-715</guid>
		<description>Hmmm.. seems like you need to set server alias with &lt;Directory&gt; handling in a vhost file. I don&#039;t think you can do this via .htaccess level though. You would simply add the ServerAlias of milch.domain.com with the Directory directive pointing to the proper directory.  Do you have access to server config? Or only .htaccess?

hanji</description>
		<content:encoded><![CDATA[<p>Hmmm.. seems like you need to set server alias with <directory> handling in a vhost file. I don&#8217;t think you can do this via .htaccess level though. You would simply add the ServerAlias of milch.domain.com with the Directory directive pointing to the proper directory.  Do you have access to server config? Or only .htaccess?</p>
<p>hanji</directory></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: milch</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-714</link>
		<dc:creator>milch</dc:creator>
		<pubDate>Fri, 02 Oct 2009 01:41:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-714</guid>
		<description>I am doing free hosting. a php script would not work because each user would have to have it, understand what it is and how to use it/not break it. I have to do it in a .htaccess file. let me be more specific. I want milch.domain.com to point to doamin.com/users/milch while still displaying milch.domain.com in the URL. the previous config i posted will redirect milch.domain.com to domain.com/users/milch and that is the new URL, so the subdomain was pointless.</description>
		<content:encoded><![CDATA[<p>I am doing free hosting. a php script would not work because each user would have to have it, understand what it is and how to use it/not break it. I have to do it in a .htaccess file. let me be more specific. I want milch.domain.com to point to doamin.com/users/milch while still displaying milch.domain.com in the URL. the previous config i posted will redirect milch.domain.com to domain.com/users/milch and that is the new URL, so the subdomain was pointless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-710</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 30 Sep 2009 20:00:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-710</guid>
		<description>Hello milch

Are all the folders in /users owned by the same owner? If so, you can do a file_exists() or is_dir() using PHP as your condition. I might be misunderstanding your question. Is the index file going to be in milch.domain.com.. and you need to redirect to domain.com/users with a value?

If this is correct I would create my script similar to this (not tested and I&#039;m just coding from the hip here):

&lt;?
$domain			= $_SERVER[&#039;SERVER_NAME&#039;];
$subdomain		= explode(&#039;.&#039;,$domain);
if(is_array($subdomain) &amp;&amp; sizeof($subdomain) == 2 &amp;&amp; (isset($subdomain[0]) &amp;&amp; $subdomain[0] != &#039;www&#039;)){
	$user		= $subdomain[0];
	unset($subdomain);
	$path		= &#039;/home/sites/domain.com/public_html/users/&#039;.$user;
	if(file_exists($path) &amp;&amp; is_dir($path)){
		header(&quot;Location:http://domain.com/users/&quot;.$user);
		eixt();
	}else{
		// directory doesn&#039;t exist.. do something
	}
}else{
	// invalid domain.. do something
}
?&gt;

hanji</description>
		<content:encoded><![CDATA[<p>Hello milch</p>
<p>Are all the folders in /users owned by the same owner? If so, you can do a file_exists() or is_dir() using PHP as your condition. I might be misunderstanding your question. Is the index file going to be in milch.domain.com.. and you need to redirect to domain.com/users with a value?</p>
<p>If this is correct I would create my script similar to this (not tested and I&#8217;m just coding from the hip here):</p>
<p>< ?<br />
$domain			= $_SERVER['SERVER_NAME'];<br />
$subdomain		= explode('.',$domain);<br />
if(is_array($subdomain) &#038;&#038; sizeof($subdomain) == 2 &#038;&#038; (isset($subdomain[0]) &#038;&#038; $subdomain[0] != 'www')){<br />
	$user		= $subdomain[0];<br />
	unset($subdomain);<br />
	$path		= '/home/sites/domain.com/public_html/users/'.$user;<br />
	if(file_exists($path) &#038;&#038; is_dir($path)){<br />
		header("Location:<a href="http://domain.com/users/" rel="nofollow">http://domain.com/users/&#8220;.$user);<br />
		eixt();<br />
	}else{<br />
		// directory doesn&#8217;t exist.. do something<br />
	}<br />
}else{<br />
	// invalid domain.. do something<br />
}<br />
?></p>
<p>hanji</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: milch</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-708</link>
		<dc:creator>milch</dc:creator>
		<pubDate>Wed, 30 Sep 2009 18:27:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-708</guid>
		<description>Hey, i have a redirect setup right now like this:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.* [NC]
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com
RewriteCond /home/sites/domain.com/public_html/users/%1 -d
RewriteRule ^(.*) http://domain.com/users/%1/$1 [L]

so if i type milch.domain.com, and the folder /users/milch exists, it changes the URL to domain.com/users/milch. So my question is, how can I make it still appear as the subdomain milch.domain.com while using the /users/milch folder and the index file in it?</description>
		<content:encoded><![CDATA[<p>Hey, i have a redirect setup right now like this:<br />
RewriteEngine on<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} !^www.* [NC]<br />
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com<br />
RewriteCond /home/sites/domain.com/public_html/users/%1 -d<br />
RewriteRule ^(.*) <a href="http://domain.com/users/%1/$1" rel="nofollow">http://domain.com/users/%1/$1</a> [L]</p>
<p>so if i type milch.domain.com, and the folder /users/milch exists, it changes the URL to domain.com/users/milch. So my question is, how can I make it still appear as the subdomain milch.domain.com while using the /users/milch folder and the index file in it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-472</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 02 Aug 2009 15:51:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-472</guid>
		<description>Hello pedro

The issue with url masking (also known lately as SEO redirects) is that Google will penalize you if you have too many external pointing links. So using tinyurl.com would be a link outside of the domain. By doing the mask, all the links appear to be going internally.

Second reason not to use tinyurl or other 3rd party URL shortening service, is that it&#039;s now against EPN TOS to do this. Thanks for commenting!

hanji
.-= admin´s last blog ..&lt;a href=&quot;http://www.money-code.com/2009/07/0-followers-on-twitter-is-being-addressed/&quot; rel=&quot;nofollow&quot;&gt;0 Followers on Twitter is being addressed&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>Hello pedro</p>
<p>The issue with url masking (also known lately as SEO redirects) is that Google will penalize you if you have too many external pointing links. So using tinyurl.com would be a link outside of the domain. By doing the mask, all the links appear to be going internally.</p>
<p>Second reason not to use tinyurl or other 3rd party URL shortening service, is that it&#8217;s now against EPN TOS to do this. Thanks for commenting!</p>
<p>hanji<br />
.-= admin´s last blog ..<a href="http://www.money-code.com/2009/07/0-followers-on-twitter-is-being-addressed/" rel="nofollow">0 Followers on Twitter is being addressed</a> =-.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pedro</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-469</link>
		<dc:creator>pedro</dc:creator>
		<pubDate>Sat, 01 Aug 2009 15:05:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-469</guid>
		<description>why don&#039;t you just use the www.tinyurl.com</description>
		<content:encoded><![CDATA[<p>why don&#8217;t you just use the <a href="http://www.tinyurl.com" rel="nofollow">http://www.tinyurl.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suzanne of New Affiliate Discoveries</title>
		<link>http://www.money-code.com/2007/10/url-masking-cloaking/comment-page-1/#comment-6</link>
		<dc:creator>Suzanne of New Affiliate Discoveries</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-6</guid>
		<description>Thanks for laying this trick out step by step.  I thought of using the .htaccess that way, but guess I just needed to see it spelled out.

What are your thoughts about server directive vs. code? 

It seems like the PHP option,  if sent to a common directory like /reviews/ or /recommends/ or something less spammy sounding, would help you sort and organize easier than one long .htaccess file.

Thanks for the robot/spider tricks as well, this is the best I&#039;ve seen it laid out, nice and simple.</description>
		<content:encoded><![CDATA[<p>Thanks for laying this trick out step by step.  I thought of using the .htaccess that way, but guess I just needed to see it spelled out.</p>
<p>What are your thoughts about server directive vs. code? </p>
<p>It seems like the PHP option,  if sent to a common directory like /reviews/ or /recommends/ or something less spammy sounding, would help you sort and organize easier than one long .htaccess file.</p>
<p>Thanks for the robot/spider tricks as well, this is the best I&#8217;ve seen it laid out, nice and simple.</p>
]]></content:encoded>
	</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! -->
