Archived topic
Theme Pages Indexed
6 replies · Started by Rafael on March 27, 2023
Hi, what's up with these pages being indexed:
https://vendingmachineshub.com/how-to-change-the-colors/feed
https://vendingmachineshub.com/sample-post/feed
I would expect, when installing the theme, that these pages would have noindex on them, since they are just guides and "placeholders"
How do I get rid of all these and others that are hidden around because of the premium theme.
Thank you
Hi Rafael,
GeneratePress has no control over this.
The feed I believe is indexed by default.
noindex can be added again using an x-robots-tag rule in your .htaccess file. You would want to match all URLs ending in “/feed/” and add a noindex to those. For more information, you can check this article from Yoast: https://yoast.com/x-robots-tag/
Thanks for the reply, Fernando.
How do I remove these instead? Those are from the GP premium theme I've imported.
Thanks for the reply, Fernando.
How do I remove these instead? Those are from the GP premium theme I’ve imported.
Can you try creating a Hook Element and add this:
<?php
header("X-Robots-Tag: noindex", true);
?>
Hook it to wp_head. Enable "Execute PHP" as well.
According to the link I provided from Yoast, this code should do that.
Appreciate the fast reply, Fernando.
I found a WP plug-in (Remove RSS feeds is the name) that removed all RSS feeds, so I went with it.
Thank you
I see. Thank you for sharing. You're welcome, Rafael!