homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

Does the leading / make any difference?
Sorry, I'm new to robots.txt

10+ Year Member

Msg#: 228 posted 3:53 pm on Jan 5, 2004 (gmt 0)


A couple of months ago I decided to set up a robots.txt file to ban all bots from visiting a couple of pages on a couple of sites I run, I set it up as follows:

User-agent: *
Disallow: terms.htm
Disallow: contact.htm

However I find that all ot these pages are still being crawled, I have done a bit more research and now changed the file to read:

User-agent: *
Disallow: /terms.htm
Disallow: /contact.htm

The robots.txt file is in the root folder, and can be accessed by www.mysite/robots.txt

Is the leading / the problem, or would this not normally affect it? Any other suggestions?

Cheers for any advice,




10+ Year Member

Msg#: 228 posted 1:07 am on Jan 6, 2004 (gmt 0)

I've heard that some robots treat Disallows that don't have a leading slash as though they do, but I can't really confirm that.

The standard says to put a leading slash every time, so that's what I do. I don't see anything wrong with your syntax, so I don't think you should have any problems.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved