Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 07-01-2007, 11:38 PM
mrongey mrongey is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 1
Default Using robots.txt with addon domains

I want to clarify my understanding of using robots.txt with addon domains to avoid duplicate content.

This is my current understanding:

Let's say I have www.domain.com and www.addon.com is an addon in the same account. If I put a robots.txt in the root directory of www.domain.com and disallow access to /addon, the spider crawling www.domain.com will not go into that folder. However, when a spider crawls www.addon.com it will not have a problem because it does not see the robots.txt file.

Is this correct?
Reply With Quote
  #2  
Old 07-02-2007, 02:05 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: Using robots.txt with addon domains

Yes, it is. But it may actually be smarter not to include it. Making that robots.txt will actually be the only thing alerting search engines that the folder exists. Many unscrupulous search engine algorithms and spam bots will read the robots.txt, see the existence of the folder, and then ignore your instructions.

As long as you turn off directory indexing and don't link to the addon site using the folder hierarchy, I don't see how any search engine would ever know it exists.

In addition, to fix any other chance of problems, I'd stick a redirect command in the addon's public_html. Make sure you do a 301 permanent redirect, and have it redirect from domain.com/addon to addon.com, with file level redirection. You can do this from cPanel or search on this forum for the proper commands.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #3  
Old 07-02-2007, 07:40 AM
charlesgan's Avatar
charlesgan charlesgan is offline
Swamp Croc
 
Join Date: Mar 2007
Location: http://www.hostgatorreview.org/
Posts: 372
Default Re: Using robots.txt with addon domains

Quote:
Originally Posted by mrongey View Post
I want to clarify my understanding of using robots.txt with addon domains to avoid duplicate content.

This is my current understanding:

Let's say I have www.domain.com and www.addon.com is an addon in the same account. If I put a robots.txt in the root directory of www.domain.com and disallow access to /addon, the spider crawling www.domain.com will not go into that folder. However, when a spider crawls www.addon.com it will not have a problem because it does not see the robots.txt file.

Is this correct?

ya correct. AS the addon.com is another website, and its a big door open for spider.
__________________
Charles Gan
Hostgatorreview.org
Reply With Quote
  #4  
Old 07-02-2007, 08:38 AM
quietFinn's Avatar
quietFinn quietFinn is online now
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: Using robots.txt with addon domains

Quote:
Originally Posted by charlesgan View Post
ya correct. AS the addon.com is another website, and its a big door open for spider.
Where is that big door?
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #5  
Old 07-02-2007, 11:34 AM
charlesgan's Avatar
charlesgan charlesgan is offline
Swamp Croc
 
Join Date: Mar 2007
Location: http://www.hostgatorreview.org/
Posts: 372
Default Re: Using robots.txt with addon domains

domain.com is main door. You can access primary domain and also addon domain.

And for the addondomain.com is another door directly to the addon domain.

its domain pointer thing in the cpanel that allow the multiple addon domain. So, it create this confusion. Use .htaccess to block it will one the solution. or you can get a reseller account, each domain are in own cpanel
__________________
Charles Gan
Hostgatorreview.org
Reply With Quote
  #6  
Old 07-02-2007, 01:57 PM
quietFinn's Avatar
quietFinn quietFinn is online now
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: Using robots.txt with addon domains

Quote:
Originally Posted by charlesgan View Post
domain.com is main door. You can access primary domain and also addon domain.
The directory where the add-on domain resides is not visible, i.e. you must know the directory name to be able to browse to it.
Search engine bots can't see anything more than a normal browser.
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #7  
Old 07-03-2007, 05:37 PM
Break the Silence's Avatar
Break the Silence Break the Silence is offline
Junior Croc
 
Join Date: May 2007
Posts: 154
Default Re: Using robots.txt with addon domains

Quote:
Originally Posted by slapshotw View Post
Many unscrupulous search engine algorithms and spam bots will read the robots.txt, see the existence of the folder, and then ignore your instructions.
Quite correct...

In a case like this, it would be unwise to rely strictly on robots.txt. The safer option, (as stated previously), would be to simply avoid a direct downward link between the two folders.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 06:58 AM.