• Dear Sirs,
    I’ve faced with strange wordpress bug and AIO Seo reaction to it.
    Problem in general:
    If we add random number to wordpress post (ex. site.name/post-name/123123/) we will get the same content as site.name/post-name/ and rel=”canonical” will be site.name/post-name/123123/, not site.name/post-name/
    With old versions AOP Seo and with competitors plugins rel=”canonical” lead to site.name/post-name/ and everithing ok, but right now we we will get very huge problems with search engines if this bug (feature ?? ) won’t be fixed.
    Sorry for my English and thank you in advance!

    https://www.ads-software.com/plugins/all-in-one-seo-pack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Slams,

    Why are you adding a random number to the end of your WordPress posts? Understand that adding a number to the end of a post has a meaning in WordPress – it means you want to look at that page number of a paginated post. If that doesn’t exist on your site, you might want to have your theme redirect the page request back to the main page of the post.

    Thread Starter Slams

    (@slams)

    Peter,

    Unfortunantely I don’t know how to redirect back to the main page of the post ??

    But, I noticed that many wordpress users don’t know that thay have pagination and dublication problems. 99% of websites from the search affected with this post pagination dublication. Imagine that somebody will want to use black seo to remove their competitor from SERP. They just need to notify search engines about this pages.

    Old 1.6.* version of the AIO Seo have had a correct rel=”canonical” to main page of the post.

    P.S. If you know how to code /*number*/ to original post redirector or where I can find it, please, post it here.

    Thank you in advance!

    Slams,

    I’ll think about this; we actually do some work within the plugin to figure out how many pages are in a paginated post, but this is a hassle because the only real way to tell is by parsing the post content, and we just do it to support rel prev / next. (all that code is in the wp_head() class method in aioseop_class.php). We do have a aioseop_canonical_url filter, so it is possible to change your canonical urls like so:

    add_filter( 'aioseop_canonical_url', 'slams_post_links' );
    
    function slams_post_links( $url ) {
        global $post;
        if ( is_single() && !empty( $post ) ) {
             return get_permalink( $post->ID );
        }
        return $url;
    }
    Thread Starter Slams

    (@slams)

    The funny thing is that post is not paginated. You can enter an random number and you got the same content that you have on main page. This is strange wordpress bug.

    Also, I’ve just discovered, if I uncheck “Canonical URL’s”, WordPress set correct canonical URL’s to maint page of the post.

    And Thank you for the function. I will try it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rel="Canonical" to not original content’ is closed to new replies.