• Hello guys, I need to have my images attachment pages in my website but I dont need Google to index them, where is the opnion in the plugin to tell google not to index/follow this images attachment pages? thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author JoomUnited

    (@joomunited)

    Hi,

    There’s no such option in the plugin but you can do it by editing (ie adding this like of code) to the image.php from your theme file like following:

    <?php wp_redirect( get_permalink( $post->post_parent ), 301 ); exit; ?>

    Cheers,

    • This reply was modified 5 years, 4 months ago by JoomUnited.
    Thread Starter Criis87

    (@criis87)

    thanks mate, but with that code i will be redirecting attachment Pages to the parent post URL. I need to keep things the way they are, just tell google not to index them, as I still need my Attachment Pages to be accessible in my site.

    Plugin Author JoomUnited

    (@joomunited)

    Hi,

    I don’t have any solution to that because the media URL are completely different preventing us from using the robot.txt

    Cheers,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Noindex Attachment Pages in Sitemap?’ is closed to new replies.