Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

placement of robots.txt file

Hi all,

I want to disallow search robots from indexing certain directories on a MacOS X Server.
Where would I put the robots.txt file?

According to the web robots pages at http://www.robotstxt.org/wc/exclusion-admin.html it needs to go in the "top-level of your URL space", which depends on the server and software configuration.
Quote: "So, you need to provide the "/robots.txt" in the top-level of your URL space. How to do this depends on your particular server software and configuration."

Quote: "For most servers it means creating a file in your top-level server directory. On a UNIX machine this might be /usr/local/etc/httpd/htdocs/robots.txt".

On a MacOS X Server would the robots.txt go into the "Library" or "WebServer" directory or somewhere else?

Thanxx
monica

G5 Mac OS X (10.4.8)

G5, Mac OS X (10.4.8)

Posted on Feb 14, 2007 4:43 PM

Reply
Question marked as Best reply

Posted on Feb 14, 2007 7:40 PM

The default document root for Apache is /Library/WebServer/Documents so your robots.txt file should be at /Library/WebServer/Documents/robots.txt
1 reply

placement of robots.txt file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.