WordPress.org

Ready to get started?Download WordPress

Forums

Comments Permalink should be nofollow?? (1 post)

  1. altfgcom
    Member
    Posted 1 year ago #

    Hello,

    I read somewhere (can't recall where) that comments permalinks in WordPress are bad for SEO because they create duplicate pages:

    e.g.,
    http://mysite.com/lalala/
    contains the same text/info as
    http://mysite.com/lalala/#comment-528123

    If that's true, is there a way to make comment permalinks "nofollow"? Below is one example found in our commments.php template.

    `<p id="login-req" class="alert">You must be <a>/wp-login.php?redirect_to=<?php echo urlencode( get_permalink() ); ?>">logged in</a> to post a comment.</p>

    Here's the second/last instance of the word "permalink" in comments.php template:

    <p>Logged in as <a href="<?php echo get_option( 'siteurl' ); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Log out of this account">Log out &raquo;</a></p>

    Any assistance would be much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic