• Resolved rikay

    (@rikay)


    Hi,

    First of all, I really like this plugin and it’s simplicity! But I was checking my website analytics lately and saw that some people visited my site through a google search result that showed the wrong URL. I’ll explain: I use an extra category called “featured” to highlight posts on the homepage. I use this plugin to give the “featured” post in, for example, the category eyecandy the correct url, like mywebsite.com/eyecandy/postname. Now this plugin nicely creates the right permalink, but it somehow also creates the permalink mywebsite.com/featured/postname.

    So the plugin basicly creates permalinks for every category you check, and only shows the “right” permalink on the website. HOWEVER, the posts are still accesable trough all other permalinks. If you create a post with, for example, the category tags “featured”, “eyecandy” and “pics” and check “eyecandy” as permalink, the url /eyecandy/test-post will be generated. BUT the post is also accesable trough /pics/test-post and /eyecandy/test-post.

    Google will probably see this as duplicated content and will drag you website down to oblivion. Can you please fix this problem?

    Here are some live examples of permalinks that all show the same post without redirecting to the correct category url, which is pics/postname:

    http://mhmag.nl/pics/graffiti-op-ontblote-vrouwenlijven-45-fotos

    http://mhmag.nl/featured/graffiti-op-ontblote-vrouwenlijven-45-fotos”

    http://mhmag.nl/eyecandy/graffiti-op-ontblote-vrouwenlijven-45-fotos

    https://wordpress.org/plugins/wp-category-permalink/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Eagerly awaiting a resolution for this because this is indeed a very harmful situation.

    The SEO thing to do would be to insert a
    <link rel="canonical" href="dynamicly-insert-original-link-here" />
    in the head of all the non-first-choice-pages. But saying that… i wouldn’t know where to start (as of yet).

    Looking into this myself and hoping the writer of the plugin beats me to the punch 😉

    Rikay, wordpress itself or the seo plugin of yoast already fixed this by inserting just a link in the head.
    If you find you don’t have such a link in your <head> already, you can make one yourself by doing something like the following (not perfected yet):

    Place this code in your functions.php:

    function wp_cat_permalink_multi_link_SEO_fix() {
    	global $post;
    	$cat_id = get_post_meta( $post->ID , '_category_permalink', true );
    	if (is_single()) {
    		if ( $cat_id != null ) {
    			//do nothing
    		} else {
    			$cat = get_the_category();
    			echo '<link rel="canonical" href="'.get_site_url.'/'.$cat->name.'/'.$post->post_name.'" />';
    		}
    	}
    }

    You can then use this in the head:
    <?php wp_cat_permalink_multi_link_SEO_fix(); ?>

    Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘URGENT: Plugins created multiple permalinks’ is closed to new replies.