Link to home
Start Free TrialLog in
Avatar of Victor Kimura
Victor KimuraFlag for Canada

asked on

using robots.txt on subdomain

How do I set up a robots.txt on a subdomain for Google, Bing, Yahoo? I set up the subdomain outside the htdocs folder. I'm on a Linux server. So where htdocs is set at:
/htdocs

I set the subdomain at:
/subdomain-test

Do I simply place the robots.txt at:
/subdomain-test

Thanks,
Vkimura
Avatar of PortableTech
PortableTech

You are correct, just place the robots.txt in the root folder of the subdomain and you are all set.  
Avatar of Victor Kimura

ASKER

Hi, thanks.

So do I use this code:

User-agent: *
Disallow: /


or this one:

User-agent: *
Disallow: /subdomain-test
SOLUTION
Avatar of PortableTech
PortableTech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So could we use a path name like?

User-agent: *
Disallow: http://subdomain.testdomain.com/testpage.html

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, PortableTech. Yes, that makes sense. =)