homepage Welcome to WebmasterWorld Guest from 54.234.42.16
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
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

    
Robot.txt: Wildcards
SwipeTheMagnets




msg:3960471
 6:49 pm on Jul 27, 2009 (gmt 0)

Question for the group:

If I have a url with the following string:
[mysite.com...]

Let's say I want to disallow everything after the query value. Would the following robot.txt disallow be applicable:
User-agent: *
Disallow: /sub1/*/*/*.html?

?

Any help is much appreciated

 

goodroi




msg:3960990
 12:54 pm on Jul 28, 2009 (gmt 0)

For your robots.txt to block access to all URLs that include a question mark, you can add this entry:

User-agent: *
Disallow: /*?

This is not part of the official robots.txt protocol but it is supported by Google, Yahoo and Bing.

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved