homepage Welcome to WebmasterWorld Guest from 54.167.173.217
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 stop parameters page from being indexed
thok

5+ Year Member



 
Msg#: 4105189 posted 2:20 pm on Mar 26, 2010 (gmt 0)

I have a page http://www.example.com/login/

I want it to get indexed.

But I don't want any thing which is passing any parameter to get indexed as a separate page. Like I dont want following page to get indexed:

http://www.example.com/login/?action=register

 

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4105189 posted 7:06 pm on Mar 26, 2010 (gmt 0)

Try this in robots.txt:

User-Agent: *
Disallow: /*?action=


Be aware that if anything anywhere on the web links to URLs with parameters, the URL can still appear as a URL-only entry in the SERPs.

topr8

WebmasterWorld Senior Member topr8 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4105189 posted 9:21 pm on Mar 26, 2010 (gmt 0)

use the canonical tag

[googlewebmastercentral.blogspot.com...]

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