Results 1 to 3 of 3

Thread: Multiple URL for comments may lead to SEO problems

  1. #1
    New Pligger lawdgawd's Avatar
    Joined
    Jun 2007
    Posts
    3

    Multiple URL for comments may lead to SEO problems

    This is a problem I have noticed with the most SEO-friendly mode of using Pligg - with url2method and friendlyurls, and with outgoing.php disabled.

    Say, you have a story at
    http://www.site.com/category/story-headline-comes-here/
    and it has a few comments.

    When these comments are displayed on the homepage, the comment urls are displayed as
    http://www.site.com/story/1705/#c1194

    However clicking on the comment takes you to the original URL.

    It is a well-known principle in SEO that multiple URLs should not take you to the same content. That could lead to duplicate content issues in all search engines.

    In the example (you can see it in any default installation), somehow, the user is redirected to the original URL. If this redirection happens using a 301 permanent redirect, you are more or less safe. Any other way, you are asking for trouble.

    This can be solved if the comment URLs are shown as http://www.site.com/category/story-h...es-here/#c1194

    Would be grateful if someone could explain the different URLs for comments.

  2. #2
    Constant Pligger Simon's Avatar
    Joined
    Mar 2006
    Posts
    537
    I found the same. Best thing to do is use story.php?id=x as they automatically 301 to the friendly url, meaning no duplicates. This is my function that is used in the sidebar comments plugin (as long as you're using 9.6):

    Code:
    function tpl_function_SidebarComments($params, &$tpl) {
        global $db, $main_smarty;
        
        $res = "SELECT comment_content,comment_id,comment_link_id FROM ".table_comments." ORDER BY comment_date DESC LIMIT 5";
        $list_comments = mysql_query($res);
        $db->num_queries++;
        $return = "";
        while($row = mysql_fetch_array($list_comments)){                        
            $return .= "<a class='switchurl' href='story.php?id=".$row['comment_link_id']."#c".$row['comment_id']."'>".shortenText($row['comment_content'])."</a>\n";            
        }
        return $return;
    }

  3. #3
    New Pligger lawdgawd's Avatar
    Joined
    Jun 2007
    Posts
    3
    Thanks Simon, will try that out.

Similar Threads

  1. Multiple Problems With Groups.
    By mindbender89 in forum Questions & Comments
    Replies: 11
    Last Post: 11-24-2009, 12:09 PM
  2. Related links that lead directly to original URL
    By gnalkit in forum Questions & Comments
    Replies: 0
    Last Post: 05-01-2009, 05:45 AM
  3. Comments, Login Problems
    By benhanten in forum Questions & Comments
    Replies: 5
    Last Post: 03-06-2008, 04:00 PM
  4. problems with comments and setup the pligg, doesnt work
    By jjjjj in forum Questions & Comments
    Replies: 7
    Last Post: 06-17-2007, 07:54 AM
  5. Comments update, comments accents... what more!!
    By seotalk in forum Questions & Comments
    Replies: 1
    Last Post: 06-15-2007, 02:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •