Where should robots.txt file go?

Status
Not open for further replies.

abelscry

New Member
Messages
5
Reaction score
0
Points
1
Where should a robots.txt file go -- in the real account root or in the folder public_html? I have FTP'd a robots.txt file in both places, but Google's tester tool only seems able to read the one in public_html, though they say here that it should go in the domain root. (I can tell the difference between the two files because one of them has a blank line in it.) My problem is that although the tester tool does not flag any syntax errors or warnings, it seems to take no notice of the Disallow line. When tested it just reports "allowed".
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

The robots.txt file should go in your "public_html" directory. This is because your public_html directory is the root of your domain, since your domain displays the contents of this directory. If your robots.txt file is outside public_html, Google will be unable to access it. ;)

Thank you,
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Additionally, if you wish to have multiple websites, place it in the directory where that site would be hosted.
 
Status
Not open for further replies.
Top