Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tell Googlebot not visit my pages with some querystring?

Status
Not open for further replies.

welldefined

Programmer
Mar 9, 2006
62
GB
Hi,

How to tell Googlebot not visit my page titles.asp?something=s but let it visit page titles.asp?other=a

Thank you in advance.
 
in robots.txt use

User-agent: Googlebot
Disallow: pagename.ext?param_name

should work

but a safer way is to 301 redirect the unwanted urls to the wanted ones, or if they are no longer valid make it so they return a 404 response and they will be removed from the index.


Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
Thank you.

Can you tell me how to make they return a 404? Can I do that in asp? The server is not mine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top