No-index all the posts of a category
-
Hi everyone!
I would like no-indexing all the posts of a specific category of my wordpress site.
The problem is that the structure of my URL is composed without /category/: www.site-name.ext/date/post-name/
so without /category-name/Is possibile to disallow the indexing of all the posts of the category via robots.txt?
Using Yoast Plugin I can put the no-index for each post, but I would like to put the no-index (or disallow/) a time for all the post of the category.
Thanks in advance for your help and sorry for my english.
- Mike
-
Sure, without /category/ in the URL structure I can't block Googlebot using the robots.txt
No problem, now I can use the noindex for all the posts.
Thank you so much Oleg.
Regards,
- MIke
-
With that code, Google won't index any pages within that particular category.
Unfortunately, without a specific folder pattern, you cannot block via robots.txt
-
Hi Oleg, thanks for your help.
I did just some tests and does it seems to work fine.
Do you think is possible to block Google bot to indexing all the post of a category?in this way (disallow/ in the robots.txt) I could save the Google crawle budget for the pages of my site that I want to index.
Thanks a lot for your help Oleg.
Have a nice weekend,- Mike
-
Wordpress Admin > Posts > Categories > Edit the category you want to noindex > Set "always noindex" for "Noindex this category" box
EDIT: looks like that just noindexes the actual category page.
Here is a workaround I found...
-
Find the category ID (WP Admin > Posts > Categories > Edit the category you want to noindex > look at URL for the tag_ID # (this is the category ID))
-
Edit your theme header and include:
<?php if (is_single() && in_category(array(###))) { echo ''; } ?>
where ### is the category ID
-
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Is it convinient to use No-Index, Follow to my Paginated Pages?
I have a website http://www.naukrigulf.com and it has a lot of Paginated pages on its SERP and most of paginated pages are getting indexed in Google SERP. Is it beneficial to use No-Index, Follow to keep the link equity to main (first page), although we have already used rel=next and rel=prev. If Answer is "yes" is their any harm by using no-index, follow with rel=next, rel=prev.
On-Page Optimization | | vivekrathore0 -
Homepage ranking above category page, but no keywords in there! Why?
So...we have a 5 year diary product page at TOAD diaries. It's had a lot of on page treatment: keyword in title, alt text, decent copy, pictures of the product etc. Find it here - http://www.toaddiaries.co.uk/shop/5-year-diary So we rank 22nd for 5 year diary, but google sends the customer to the home page! There no mention of 5 year diaries on there. Seems ridiculous! I can't help but think we should rank better for this as it's a low difficulty term (according to keyword difficulty tool on MOZ). Any thoughts on why this might be? Oh, Google HAS indexed the 5 year diary page. Used a search operator to check that first (thanks to you guys on here:) ) Thanks.
On-Page Optimization | | isaac6630 -
How updating a post can influence seo
I have just read this great post from moz blog: http://moz.com/blog/google-fresh-factor But I haven't found nothing about updating post date. If I edit an old great post (now ranked 2nd after several months in 1st serp position) does it be better if I also update the date of the post in the wordpress post edit page? Thank you very much and sorry for my poor english. Bye, Dario.
On-Page Optimization | | Italianseolover0 -
Duplicate content from category pages?
I have an ecommerce store with different categories for my products. Some products do appear in more than one category, is that an issue even if you end up on the same product page/link? Also, I have a "show all products" category, which I believe creates duplicate content too? What is your take on this? What can I do to solve this? Is it even an issue of duplicate content? All answers are very much appreciated!
On-Page Optimization | | danielpett0 -
Does my actual blog post title have any effect once I create a title tag for SEO purposes?
A little confused about this. Reason I ask is that using my actual title for my title tag sometimes isn't the best for getting ranked, so the title and title tag are sometimes not the same.
On-Page Optimization | | seo_f20120 -
Accepting Guest Posts On My Blog
I run a static website with a wordpress blog attached (www.example.com/blog). I'm thinking of allowing guest to post to the blog mainly just to get some fresh content on the blog instead of my own rantings. Is this a good idea from an seo perspective? I do know that I will get mostly people promoting their own sites but if the content is topically relevant and it's of some quality this should be okay, right? Any links in their post would be no follow so I wont loose there. If this is a go, how do I promote it so I get more people to posts? Am I thinking right on this? Good idea?
On-Page Optimization | | leaseman0 -
My blog title is getting added to my post title and I can't figure out how to remove it
Hello everyone, I am sure most of you guys know how to do this. I am finding that when my posts are listed in google, my blog title is added to my post title. 2 questions. 1. Is this hurting my rankings because the blog title is diluting my keywords making it look like I have a huge title? (the on page optimizer is dinging me for this. 2. I use a self hosted wordpress blog with the all in one seo plugin. Does anyone know how to remove the blog title from being appended to the post title? I thought I could do that in all in one seo by checking the rewrite title box and just having it say %post_title% but that didn't fix it. Also it was doing it before I checked that box as well. Any other ideas to try? Thanks
On-Page Optimization | | FastLearner0 -
Can I have a strong brand category page and a strong product page?
It seems Google base and other Comparison Shopping Engines like to see the brand in the product name. But, on my category page for that brand, website optimizer tells me including the brand name with each product is cannabilizes links. For example; I have a page for jewelerABC with 20 pieces of jewelry listed as well as original content about jewelerABC. I do not currently name these products as xyz by jewelerABC. This page comes up nicely in the serps. But in Google base The top listings for jewelry by jewelerABC seem to have every product named xyz by jewelerABC or JewelerABC xyzs. What is the best way to optimize.for both? Stephen
On-Page Optimization | | stephenfishman0