homepage Welcome to WebmasterWorld Guest from 54.237.184.242
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

    
How to block all subdirectories?
TerryMc




msg:1528366
 6:51 pm on Nov 17, 2004 (gmt 0)

Hi,

I want our robots.txt to block all our subdirectories, but leave the pages in the root indexed.. how would I do that?

thanks

 

ncw164x




msg:1528367
 7:05 pm on Nov 17, 2004 (gmt 0)

Using the robots.txt file you will have to list all of your sub directories

User-agent: *
Disallow: /images/
Disallow: /cgi-bin/

Could be a easier way using .htaccess?

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