homepage Welcome to WebmasterWorld Guest from 54.237.122.241
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

    
robots.txt
kiransarv




msg:3770327
 12:15 pm on Oct 21, 2008 (gmt 0)

Hi all.

I have three URL patterns
1)www.mysite.com/index.php?id=(.*)&go=(.*)
2)www.mysite.com/index.php?go=(*)&id=(.*)
3)www.mysite.com/index/php?id=(.*)&go=(.*)&start=(.*)&offset=(.*)

I want allow users to crawl the first two but not to allow the links following it. I have to disallow the third pattern.

Basically it is allowing the first page and disallow the second page.

How can i do this in robots.txt?

 

g1smd




msg:3770351
 1:00 pm on Oct 21, 2008 (gmt 0)

If I read the question right then:

User-agent: Googlebot
Disallow: /index.php[b]*[/b]start

You will also need to re-list all other things that you want Google to not follow in the Googlebot section, as once there is a Googlebot section, they no longer look at the User-agent: * section.

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