Site logo

[Resolved] Theme Pages Indexed

Home Forums Support [Resolved] Theme Pages Indexed

Home Forums Support Theme Pages Indexed

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2585059
    Rafael

    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

    #2585101
    Fernando
    Customer Support

    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/

    #2590051
    Rafael

    Thanks for the reply, Fernando.

    How do I remove these instead? Those are from the GP premium theme I’ve imported.

    #2590054
    Rafael

    Thanks for the reply, Fernando.

    How do I remove these instead? Those are from the GP premium theme I’ve imported.

    #2590086
    Fernando
    Customer Support

    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.

    #2590106
    Rafael

    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

    #2590127
    Fernando
    Customer Support

    I see. Thank you for sharing. You’re welcome, Rafael!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.