22
Dec

Mini-tutorial: How to add noindex to category pages

Written by Dusty. Posted in Plugins, Resources

This question was asked in the WordPress forum here.  Since nobody had answered Michael at press time, I thought it might be helpful to find the answer and publish it here.

Solution:

Option 1) Use robots.txt to prohibit search engines form indexing a page.  Simply add this to your robots.txt file.  If you don’t have a robots.txt file, simply create one in your go-to text editor.

User-agent: *
Disallow: /category/page-title

These two lines will a) let search engines know this rule applies to all robots and b) tell them they cannot index the page located at “category/page-title”.

Option 2) Use this handy plugin.  The Ultimate Noindex Nofollow Plugin by Jonathan Kemp.  With this plugin you can choose pages that the plugin will identifying as non-indexable in the robots.txt file.  There are many other options with this plugin including adding the rel=”nofollow” tag to various places in your WordPress code.

Option 3) Use a meta tag to order search engines to not index a particular page. The meta tag looks like this:

<META NAME=”ROBOTS” CONTENT=”NOINDEX, NOFOLLOW”>

Tags: , , , ,

Trackback from your site.





Dusty

Dusty is an avid WordPress user and the editor of Pingable.org.

Comments (11)

  • January 13, 2010 at 3:20 pm |

    Doesn’t the All-in-One SEO plugin do this? In the settings for the plugin, you can check a box to noindex category pages. You can also noindex tag pages, too.

    • Simon
      January 13, 2010 at 11:38 pm |

      Yes it does…we talk about this in the latest post…but not everyone likes using plugins, this this is another way to achieve the same thing. Cheers.

  • abdul from howtomakemoney
    June 13, 2010 at 1:28 pm |

    Which one do you think is better to use the All-in-one SEO engine or the method described in your post???

  • June 15, 2010 at 1:43 am |

    Abdul,
    To achieve only one result, I would use the above method. The All-in-one SRO engine will offer many more features to play with.

    Regards,
    Cyrus

  • Angela from Webdesign bureau
    June 20, 2010 at 6:53 pm |

    Nice post Cyrus! I have to admit though, I’d rather use the All-In-One Seo Pack for this. It already got these options built in and well, the method above does seem a bit redudant when you already got this SEO plugin installed.

    Still, great tips! It really shows you know what you’re talking about, of course.

    One question: what do you think about the rel=”canonical” link element? I think it’s going to be really important in the future. Should it be a part of WP as well?

  • June 22, 2010 at 2:11 am |

    Angela,
    Good point. Why reinvent the wheel?

    I agree that rel=canonical will play a growing role. Here is what Google has to say about it: http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

  • Renan from iphone wallpaper
    July 14, 2010 at 4:07 pm |

    well… thanks for finding the answer to that solution.
    I was looking for something that could tell me how to do this, but really did not.
    Thanks for clarifying that.

  • Tamara from spongebob costume
    July 28, 2010 at 5:40 am |

    Hi, Thanks for sharing this informative article!
    This is really the kind of post i am looking for. It is easy to understand and really offers a lot of useful information on how to add noindex to category pages. Just want to ask one thing about its advantage when compare to All-in-one SEO engine. Is their really advantages?

  • Usman from Technology News
    April 28, 2011 at 4:12 am |

    Thanks for this useful article. I use All in One SEO wordpress plugin ti add no index for category pages hence avoiding duplicate content for search engines to index

  • September 23, 2011 at 10:43 pm |

    This is an awesome blog, keep up the great work!

  • October 22, 2011 at 2:54 am |

    After 2 hours browsing and did’nt find the best solutions, How to add no index to all post in specific category?

Leave a comment

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

Pingable Facebook

Pingable Archive