Forum Moderators: phranque

Message Too Old, No Replies

subdomains and search engines

         

flycast

3:14 am on Jan 31, 2005 (gmt 0)

10+ Year Member



Hello...
I have a domain say [example.com....]
I want to add subdomains for testing my customers sites, say that is [customer.example.com....] Now when sombody hits [customer.example.com...] the paged serverd comes from a folder in domain's root folder called "customer".

I do not want Google or anybody else to index or browse any of those subdomains. I have excluded the directory "customer" in the robots.txt file. Is there anything else I can do or should be doing to avoid the se's from indexing the subdomains?

[edited by: rogerd at 1:55 pm (utc) on Feb. 1, 2005]
[edit reason] examplified [/edit]

MarkHutch

4:10 am on Jan 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To block a sub domain with robots.txt you must place the file inside the root of the sub domain, not in the top level root.

Example:

You must put the robots.txt file inside the "customer" sub folder. Not the master directory.

Place this in each sub domain directory you do NOT want indexed.

User-agent: *
Disallow: /

flycast

12:45 pm on Jan 31, 2005 (gmt 0)

10+ Year Member



Mark:
Thanks. That's so logical, why didn't I think of that! I appreciate your help.
Eric