Hi all,

I'm using Drupal 5.7.
My server administrator made folder /html in the root. That's where I have to FTP all my Drupal stuff.
So, from a file- or folder perspective, my setup is:
/ (not accessible for me)
/html
index.php
robots.txt
/html/includes
/html/files
/html/sites
/html/modules etc.

A visitor reaches my site through http://www.mysite.com , so without the /html bit.

I always understood that robots.txt is only effective when it is put in the root. Is that the case in the setup I described? It is in /html, so not in the root, but on the other hand, http://www.mysite.com/robots.txt is shown, which to me looks like "in the root".

So I am wondering, is robots.txt working, or is it not?

Comments

x-lette’s picture

root in that case means the root of your documents folder aka htdocs.
In the setup above the folder /html IS the root folder. And as you correctly stated, the file robots.txt must be readable as http[s]://host.name/robots.txt.

modul’s picture

Thanks x-lette, very clear and to the point, what I was looking for.