Forum Moderators: goodroi

Message Too Old, No Replies

Need help blocking search results page

Lots of keyword search pages indexed, some with no content

         

ecmedia

10:42 pm on Feb 24, 2008 (gmt 0)

10+ Year Member



I have hundreds of pages like this indexed in Google

www.example.com/blogs/index.php?s=keyword

Some have content because of a good match but others have no content because I have not written about these topics. I have no idea how these pages are getting indexed but I would simply like to block them from being indexed.

Can anyone please help? Will adding this work?

Disallow: /?s=*

ZydoSEO

10:44 pm on Feb 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't believe that will work. However:

Disallow: /*?s=

will disallow every URL that begins with your domain name, followed by any string, followed by a '?s=', followed by any string.

So the following would be disallowed:

www.example.com/page?s=a
www.example.com/page?s=b
www.example.com/page?s=a&cat=123
www.example.com/folder/page?s=a
www.example.com/folder/page?s=b
www.example.com/folder/page?s=a&cat=123

The following would NOT be disallowed

www.example.com/page?cat=123&s=abc
www.example.com/folder/page?cat=123&s=abc

NOTE: You never have to end the Disallow with a wildcard... There is an implied wildcard at the end unless the Disallow ends in '$'.

See Google's Webmaster Central help pages for help... Even Wikipedia has help on this.

[google.com...]

[edited by: ZydoSEO at 10:47 pm (utc) on Feb. 25, 2008]

Receptional Andy

10:55 pm on Feb 25, 2008 (gmt 0)



Hi ecmedia,

Aside from the fix, it sounds like you might be experiencing a problem I've seen on a couple of sites recently [webmasterworld.com], although in those cases it extends beyond just search result pages.

Are the search results for single words that actually appear on your site somewhere?

[edited by: Receptional_Andy at 10:56 pm (utc) on Feb. 25, 2008]

ecmedia

2:28 pm on Feb 26, 2008 (gmt 0)

10+ Year Member



Hi Receptional Andy
Yes, they are for single pages and when I tried to answer your question I found that they are single words and they do appear on the website. I used to have a search form that came with the blogging software and I wouldn't be surprised if people did actually search for those pages. I am just surprised that those pages got indexed.