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 »</a></p>
Any assistance would be much appreciated.
The topic ‘Comments Permalink should be nofollow??’ is closed to new replies.
(@altfgcom)
14 years 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 »</a></p>Any assistance would be much appreciated.