WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Subscribe To Comments Reloaded] Adding rel='nofollow' to the 'subscribe&#039

[Resolved] [Plugin: Subscribe To Comments Reloaded] Adding rel='nofollow' to the 'subscribe&#039

  • Donal

    @donalmacarthur

    Hi Camu.

    I’ve just started using your plugin and I’m really impressed with it. I have one request though – can you add a rel=’nofollow’ attribute to the ‘subscribe without commenting’ links.

    I’ve just noticed on my webmaster tools account that Google has been following the subscribe links to the ‘manage subscriptions’ pages, and suddenly every post on my site is generating a crawl error.

    Your plugin isn’t actually responsible for the crawl error – it’s WordPress SEO, which I know you’ve had problems with before. WordPress SEO is misinterpreting your permalink structure and generating a false rel=”canonical” link for the page which Google is then trying to follow.

    That said, I don’t think it’s a good idea to let the Googlebot onto back-end pages like this at all, as there will always be the potential for these kinds of problems. A simple rel=’nofollow’ in the link would be a great start, but an even better solution if it’s possible would be to add a ‘noindex, nofollow’ robots meta tag to all of the plugin’s management pages as well.

    Again, great plugin, so I hope this issue can be sorted out soon.

    http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Jason Crouse

    @coolmann

    Hey Donal,

    this is a very good idea indeed, I hadn’t thought about it. I added this new request to my todo list. It will implemented in one of the next releases. Stay tuned and please vote for my plugin!

    Camu

    Donal

    @donalmacarthur

    Thanks for the swift response Camu. I’ll certainly be giving your plugin a 5-star rating 🙂

    Plugin Contributor Jason Crouse

    @coolmann

    Looking forward to it!

    Camu

    Plugin Contributor Jason Crouse

    @coolmann

    By the way, you can already add rel=nofollow to your links. Go to Settings > Subscribe to Comments > Other messages, and add this attribute to the link in the first option on that page 🙂 I will do this by default in the next release of my plugin. Plus I will add a noindex,nofollow to the management page’s headers, per your request.

    Camu

    Donal

    @donalmacarthur

    Doh. You know I did go looking for a way to add it without editing the plugin code, but I completely missed that. Thanks for pointing it out 🙂

    I did notice something interesting though when I was taking a look through the plugin code. I was running the plugin on a theme I’d built myself from scratch, so I was curious when I saw that the management page (which was returning true to is_page()) was trying to display categories and tags, which I was filtering out of page displays by checking for the post type.

    Anyway, I noticed that the management pages seem to be a sort of post/page hybrid that I haven’t seen before. In subscribe-to-comments-reloaded.php, $wp_query->is_page is set to true and is_single is set to false (lns. 482, 483), which says ‘this is a page’, but in the associated $post object ‘post_type’ is set to ‘post’ (ln. 474) and the pages seem to use the post permalink structure – both of which say ‘this is a post, not a page’.

    I bet this is what’s confusing the SEO plugins, as the management pages are telling them that they’re both posts and pages and the plugins don’t know what to make of that.

    I don’t know if this structure is necessary to the way the plugin works, but if it isn’t it might be better to use something simpler like having the management pages emulate a simple page so they always show up at example.com/manage-subscriptions/ say.

    I hope that helps. Thanks for taking the time to respond 🙂

    Plugin Contributor Jason Crouse

    @coolmann

    Yes, thank you for pointing that out. I’ve already addressed this issue in the new version, but I haven’t released it yet 🙂 It was something I had overlooked before. If you want, you can contact me on my support forum to test the new version before it’s released.

    Camu

    Hi Camu
    Firstly thanks for a great plugin. I’ve added the nofollow tag as above. Have you had the chance to add the noindex tag to the management pages? Or is it possible to do this ourselves?
    Thanks

    You can add a line in your robots.txt like this:
    Disallow: /comment-subscriptions

    That way Google or other search engine won’t follow / index the link

    Plugin Contributor Jason Crouse

    @coolmann

    Good point!

    Plugin Contributor Jason Crouse

    @coolmann

    By the way, the new version will allow the admin to specify some custom META tags to be added to the HEAD section of the management page.

    Stay tuned!

    Camu

    I just installed this subscribe to comments plugin and google webmaster checks seems to dislike it very much. The resulting error include 404 errors and duplicate titles.

    /comment-subscriptions/?srp=1118&sra=s
    404 (Not found)
    /comment-subscriptions?srp=1106&sra=s
    404 (Not found)
    /comment-subscriptions?srp=890&sra=s
    404 (Not found)
    /comment-subscriptions?srp=1774&sra=s

    etc, etc.

    duplicate page titles
    /comment-subscriptions/?srp=1106&sra=s
    /comment-subscriptions/?srp=1118&sra=s
    /comment-subscriptions/?srp=1134&sra=s
    /comment-subscriptions/?srp=1376&sra=s
    /comment-subscriptions/?srp=1378&sra=s
    /comment-subscriptions/?srp=1381&sra=s
    /comment-subscriptions/?srp=1498&sra=s
    /comment-subscriptions/?srp=1774&sra=s
    /comment-subscriptions/?srp=2149&sra=s
    /comment-subscriptions/?srp=809&sra=s
    /comment-subscriptions/?srp=890&sra=s

    It also created this 404 page not found error:

    http://mydomain.com/http://mrdomain.com/?page_id=9999999/

    Plugin Contributor Jason Crouse

    @coolmann

    Hi dreamgrowers,

    the 404 part is related to a misconfiguration issue, please read the instructions on how to properly configure StCR, or provide the URL of your website so that I can help you with that.

    As for the duplicate titles, you have a point there, indeed. I will add this to my todo list 🙂

    Camu

    @dreamgrowers

    I also was having issues with the Comment Subscriptions page linking to http://mydomain.com/http://mrdomain.com/?page_id=9999999/. I fixed this temporarily by doing the following:

    1. Go to /plugins/subscribe-to-comments-reloaded/ and edit the file ‘subscribe-to-comments-reloaded.php’

    2. Around line 523 you will see:
    ‘guid’ => get_bloginfo(‘url’).’/?page_id=9999999′,
    ‘post_name’ => get_bloginfo(‘url’).’/?page_id=9999999′,

    Change this to:
    ‘guid’ => ‘/comment-subscriptions/’,
    ‘post_name’ => ‘/comment-subscriptions/’,

    Keep in mind that yours may be different depending what you named the page. What was happening is get_bloginfo(‘url’) was creating the blog URL but it seems that WordPress already knows to add your blog URL so there is no need for get_bloginfo(‘url’) before the page name.

    Hope this helps as a temporary fix until the developer can release a fix.

    -Kyle

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Resolved] [Plugin: Subscribe To Comments Reloaded] Adding rel='nofollow' to the 'subscribe&#039’ is closed to new replies.