Internet Marketing Forum

Internet Marketing Forum


For Webmasters and Entrepreneurs
|
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 04, 2012, 05:18:18 PM

Login with username, password and session length

Knowing others is intelligence; knowing yourself is true wisdom. Mastering others is strength, mastering yourself is true power.


- Lao Tzu

|-   Internet Marketing Forum > Online Business Discussions > Website Design and Maintenance
+  

How do I block subdomain from search engine indexing?

0 Members and 1 Guest are viewing this topic.
Pages: [1] Reply to Thread
Author Topic: How do I block subdomain from search engine indexing?  (Read 2685 times)
OfflineJRcopy
Junior Member
JRcopy is on a distinguished road
Joined: Sep 2007
Posts: 79



View JRcopy\s Profile
United States
notepad Feb 23, 2008, 09:20:05 PM #1
didn't know where to ask this so I'm asking it here

=====

If I  have the domain say http:// www.testdomain.com.
I wanted to add a subdomain only for working on and testing my site, say that is http:// work.testdomain.com. Now when sombody hits http:// work.testdomain.com the page comed served out from a folder in domain's root folder called "work".

I do not want Google or any other search engine to index or browse any of those subdomains. I know from past experience that Alexa toolbar and Google toolbar index sites viewed by their users.

 I have excluded the directory "work" in the robots.txt file. Did I do the right thing and is there anything else I can do or should be doing to avoid the se's from indexing this subdomain?

I want the subdomain to be viewable but not indexed because I don't want trouble with duplicate content.

thanks for any answers

\|||/ |----- Get The Insider Secrets To -----| \|||/
('o') | Making Multiple Streams Of Income | ('o')
() () | With PROFITABLE Mini Sites! -- Free! | () ()
Offlineumat_gila
Code4Gold Icon
umat_gila is on a distinguished road
Joined: Oct 2006
Posts: 2064


Avatar of umat_gila

Nothing Impossible Is just Possible Yet.

View umat_gila\s ProfileWWW
Gender: MaleGemini Hong Kong
notepad Feb 23, 2008, 09:35:33 PM #2
I know what you mean here. And for me using robots.txt is enough to block. But after i have thingkin again for create a few line in httpd.conf is good too.
I have try yet about this issue, just lookin forward as my experience after installing Wp Mu two days a go...

hope this one could help you :)

Latest Blog Post : Another Time To Show Off

Count Us To be a Winner on busby seo test page contest
please make a link to Indonesia Webbies For Help Us To Be A Busby Seo Test Winner
OfflineCode4Gold
Administrator
Code4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the roughCode4Gold is a jewel in the rough
Joined: Jan 2006
Posts: 6215


Avatar of Code4Gold

Administrator

View Code4Gold\s ProfileWWW
Gender: MaleGemini United States
notepad Feb 24, 2008, 02:42:50 AM #3
The proper way to do this is put a robots.txt file in the subdomain's main folder (ie: "work" in your example). It should contain the following...

Code:
User-agent: *
Disallow: /

be aware, this robots.txt file is telling the search engines to totally ignore anything served from that document root at that subdomain

Here's some basic tutorial stuff:
If you have the subdomain pointed at the "work" directory in the main domains folder, your main site no longer controls permissions for that subdomain/subdirectory. The webserver sees it as if it were it's own individual website (not a webpage). That's why this is very useful to make a site like testing.mywebsite.com for your domain mywebsite.com and do your work on the test domain and then copy any changes over to the live site.

Very good question.

Latest Blog Post : 8 Tips for Creating a Marketing Buzz

Summer Savings! $7.49 .com domains at GoDaddy.com!
Pages: [1] Reply to Thread


Code4Gold Internet Marketing Forum © 2006-2011 Resdaz Media LLC - All Rights Reserved
Forum Software Powered by SMF - © 2001-2008, Lewis Media. All Rights Reserved.