<?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: Remove sub-domain access from Addon Domain</title>
	<atom:link href="http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/</link>
	<description>Blog of Fayaz Ahmed (Miraz)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:44:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: fritzi</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3310</link>
		<dc:creator>fritzi</dc:creator>
		<pubDate>Fri, 11 Nov 2011 03:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3310</guid>
		<description>Thank you so much, I&#039;ve been searching for this info at hostgator, but every has thier own solutions, including robot files.  This solved my issue.  Thanks for the informative post.</description>
		<content:encoded><![CDATA[<p>Thank you so much, I've been searching for this info at hostgator, but every has thier own solutions, including robot files.  This solved my issue.  Thanks for the informative post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Kayde</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3304</link>
		<dc:creator>John Kayde</dc:creator>
		<pubDate>Wed, 09 Nov 2011 12:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3304</guid>
		<description>Nice post! Thanks! The solution works, but the subdomain still exists, and some search engines may index it. Here&#039;s the solution how to completely remove the subdomain: http://upcode.wordpress.com/2011/11/09/cpanel-addon-domain-without-subdomain-on-your-main-account/</description>
		<content:encoded><![CDATA[<p>Nice post! Thanks! The solution works, but the subdomain still exists, and some search engines may index it. Here's the solution how to completely remove the subdomain: <a href="http://upcode.wordpress.com/2011/11/09/cpanel-addon-domain-without-subdomain-on-your-main-account/" rel="nofollow">http://upcode.wordpress.com/2011/11/09/cpanel-addon-domain-without-subdomain-on-your-main-account/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monalisa Smith</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3276</link>
		<dc:creator>Monalisa Smith</dc:creator>
		<pubDate>Thu, 27 Oct 2011 12:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3276</guid>
		<description>Nice information.....thanks.
http://www.hosts101.com/</description>
		<content:encoded><![CDATA[<p>Nice information.....thanks.<br />
<a href="http://www.hosts101.com/" rel="nofollow">http://www.hosts101.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob web design cardiff</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3267</link>
		<dc:creator>rob web design cardiff</dc:creator>
		<pubDate>Fri, 21 Oct 2011 14:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3267</guid>
		<description>another afterthought, does anyone know how to implement the add on domain option in cpanel, using htaccess for a hosting account that does not support cpanel? Tried framed redirects, but this still showed the original hosting domain.
any help would be great on this one.</description>
		<content:encoded><![CDATA[<p>another afterthought, does anyone know how to implement the add on domain option in cpanel, using htaccess for a hosting account that does not support cpanel? Tried framed redirects, but this still showed the original hosting domain.<br />
any help would be great on this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3266</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Fri, 21 Oct 2011 14:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3266</guid>
		<description>Great article, very nicely done, you should also include using htaccess to rewrite a subdomain, as most people will want that. just a thought.
cheers.</description>
		<content:encoded><![CDATA[<p>Great article, very nicely done, you should also include using htaccess to rewrite a subdomain, as most people will want that. just a thought.<br />
cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Brothers</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3242</link>
		<dc:creator>Jonas Brothers</dc:creator>
		<pubDate>Sat, 08 Oct 2011 14:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3242</guid>
		<description>Don&#039;t you think returning a 404 is much better than 301? If you return a 301 and the user gets redirected to the proper subdomain URL, atleast he would know that he got your mainsite URL correctly (because it was redirected, instead of getting an error). He can now concentrate attacking your mainsite domain since he knows all your subdomains are under it.</description>
		<content:encoded><![CDATA[<p>Don't you think returning a 404 is much better than 301? If you return a 301 and the user gets redirected to the proper subdomain URL, atleast he would know that he got your mainsite URL correctly (because it was redirected, instead of getting an error). He can now concentrate attacking your mainsite domain since he knows all your subdomains are under it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fayaz Ahmed</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3234</link>
		<dc:creator>Fayaz Ahmed</dc:creator>
		<pubDate>Mon, 03 Oct 2011 07:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3234</guid>
		<description>That might work, however I&#039;ve seen some site to implement the zone record such a way that without the subdomain, addon domain would not work.

So if you just delete the zone record of the subdomain, most likely the addon domain will stop workin in those cases. The thing is, they don&#039;t add the subdomain as a convenience, rather it&#039;s a way for them to implement the addon domain.

Also, not all the hosting company will let you edit the zone record. So I guess you&#039;re stuck with this kinds of implementation in most cases.</description>
		<content:encoded><![CDATA[<p>That might work, however I've seen some site to implement the zone record such a way that without the subdomain, addon domain would not work.</p>
<p>So if you just delete the zone record of the subdomain, most likely the addon domain will stop workin in those cases. The thing is, they don't add the subdomain as a convenience, rather it's a way for them to implement the addon domain.</p>
<p>Also, not all the hosting company will let you edit the zone record. So I guess you're stuck with this kinds of implementation in most cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fayaz Ahmed</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3233</link>
		<dc:creator>Fayaz Ahmed</dc:creator>
		<pubDate>Mon, 03 Oct 2011 07:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3233</guid>
		<description>Hi Richy,

I think .co.za has nothing to do with the error. Possibly you&#039;ve implemented the CODE wrongly!

Say your site name is www.domain.co.za, in that case place the following CODE on this site&#039;s root folder. Remember NOT on the main site&#039;s root, rather the addon-domain&#039;s root. Say your main site is YourSite.com and www.domain.co.za was added as an addon domain with domain.YourSite.com subdomain. In that case, the subdomain&#039;s folder is the root folder for your co.za addon domain.

Now that you know where to put the CODE, put the following CODE in your .htaccess file (if it is not a wordpress installation):

&lt;code&gt;
    
    RewriteEngine On

    RewriteCond %{HTTP_HOST} !www\.domain\.co\.za
    RewriteRule ^(.*)$ &quot;http\:\/\/www\.domain\.co\.za\/&quot; [R=301,L]
    
&lt;/code&gt;

If it&#039;s a wordpress installation or if your site contains preexisting htaccess CODE, then remember to adjust it accordingly.

If my suggestion still doesn&#039;t work, then I&#039;ll need to see how your site is implemented.</description>
		<content:encoded><![CDATA[<p>Hi Richy,</p>
<p>I think .co.za has nothing to do with the error. Possibly you've implemented the CODE wrongly!</p>
<p>Say your site name is <a href="http://www.domain.co.za" rel="nofollow">http://www.domain.co.za</a>, in that case place the following CODE on this site's root folder. Remember NOT on the main site's root, rather the addon-domain's root. Say your main site is YourSite.com and <a href="http://www.domain.co.za" rel="nofollow">http://www.domain.co.za</a> was added as an addon domain with domain.YourSite.com subdomain. In that case, the subdomain's folder is the root folder for your co.za addon domain.</p>
<p>Now that you know where to put the CODE, put the following CODE in your .htaccess file (if it is not a wordpress installation):</p>
<p><code></p>
<p>    RewriteEngine On</p>
<p>    RewriteCond %{HTTP_HOST} !www\.domain\.co\.za<br />
    RewriteRule ^(.*)$ "http\:\/\/www\.domain\.co\.za\/" [R=301,L]</p>
<p></code></p>
<p>If it's a wordpress installation or if your site contains preexisting htaccess CODE, then remember to adjust it accordingly.</p>
<p>If my suggestion still doesn't work, then I'll need to see how your site is implemented.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3232</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Mon, 03 Oct 2011 06:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3232</guid>
		<description>How about you just delete the Zone Record, that way that subdomain won&#039;t exist at all</description>
		<content:encoded><![CDATA[<p>How about you just delete the Zone Record, that way that subdomain won't exist at all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richy</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3229</link>
		<dc:creator>Richy</dc:creator>
		<pubDate>Sun, 02 Oct 2011 18:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3229</guid>
		<description>Hi I have a .co.za domain and this solution keeps giving me an error of
page not redirecting correctly, is there something im doing wrong?</description>
		<content:encoded><![CDATA[<p>Hi I have a .co.za domain and this solution keeps giving me an error of<br />
page not redirecting correctly, is there something im doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noida</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3050</link>
		<dc:creator>Noida</dc:creator>
		<pubDate>Mon, 01 Aug 2011 04:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3050</guid>
		<description>Very Very helpful , thank you sir , it was very helpful , and i used it in my add-on domains . Actually  i don&#039;t understand .htaccess much . but thanks you made it easy for me . bye ,, take care...</description>
		<content:encoded><![CDATA[<p>Very Very helpful , thank you sir , it was very helpful , and i used it in my add-on domains . Actually  i don't understand .htaccess much . but thanks you made it easy for me . bye ,, take care...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casino Hire York</title>
		<link>http://www.fayazmiraz.com/remove-subdomain-access-from-addon-domain/comment-page-1/#comment-3000</link>
		<dc:creator>Casino Hire York</dc:creator>
		<pubDate>Thu, 30 Jun 2011 20:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.fayazmiraz.com/?p=141#comment-3000</guid>
		<description>I use host papa, and I cannot get it to work the way you describe, although I am sure it is my low  tech knowledge :(</description>
		<content:encoded><![CDATA[<p>I use host papa, and I cannot get it to work the way you describe, although I am sure it is my low  tech knowledge <img src='http://www.fayazmiraz.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

