Welcome to WebmasterWorld Guest from 54.160.131.144

Forum Moderators: goodroi

Message Too Old, No Replies

Subdomains

How to exclude

     

gosman

6:35 pm on Jan 3, 2004 (gmt 0)

10+ Year Member



I have a subdomain pointing at an affilite server.

Example:
reservations.mysite.com > points to affiliate servers IP address. This is set by my ISP so I have no control over this subdomain.

Is it possible to exclude this subdomain from being spidered by using the www.mysite.com/robots.txt If so what would the Disallow statement look like.

Thank you in advance

closed

1:09 am on Jan 6, 2004 (gmt 0)

10+ Year Member



You should just put a robots.txt document in the directory referred to by reservations.mysite.com and treat it like it's its own domain.

gosman

8:39 am on Jan 6, 2004 (gmt 0)

10+ Year Member



Hi Closed.

I don't have control over these subdomains. They have been set up by my ISP.

If I put the following statements

Disallow: /reservations.mysite.com/
Disallow: /guides.mysite.com/

In the robots.txt on mysite.com. Will this prevent links to these subdomains being spidered?

closed

2:54 pm on Jan 6, 2004 (gmt 0)

10+ Year Member



To answer your question, no.

Before crawling reservations.mysite.com, the robot will ask the server for reservations.mysite.com/robots.txt, not www.mysite.com/robots.txt. So what you should do is make a new robots.txt specifically for that subdomain, and put it in the same directory as reservations.mysite.com/index.html (or index.php or whatever your default page is).

 

Featured Threads

Hot Threads This Week

Hot Threads This Month