Title: URGENT: Plugins created multiple permalinks
Last modified: August 21, 2016

---

# URGENT: Plugins created multiple permalinks

 *  Resolved [rikay](https://wordpress.org/support/users/rikay/)
 * (@rikay)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/urgent-plugins-created-multiple-permalinks/)
 * 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/pics/graffiti-op-ontblote-vrouwenlijven-45-fotos)
 * [http://mhmag.nl/featured/graffiti-op-ontblote-vrouwenlijven-45-fotos&#8221](http://mhmag.nl/featured/graffiti-op-ontblote-vrouwenlijven-45-fotos&#8221);
 * [http://mhmag.nl/eyecandy/graffiti-op-ontblote-vrouwenlijven-45-fotos](http://mhmag.nl/eyecandy/graffiti-op-ontblote-vrouwenlijven-45-fotos)
 * [https://wordpress.org/plugins/wp-category-permalink/](https://wordpress.org/plugins/wp-category-permalink/)

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

 *  [Pixelein](https://wordpress.org/support/users/pixelein/)
 * (@pixelein)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/urgent-plugins-created-multiple-permalinks/#post-4718477)
 * 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 😉
 *  [Pixelein](https://wordpress.org/support/users/pixelein/)
 * (@pixelein)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/urgent-plugins-created-multiple-permalinks/#post-4718563)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-category-permalink_161616.svg)
 * [WP Category Permalink](https://wordpress.org/plugins/wp-category-permalink/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-category-permalink/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-category-permalink/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-category-permalink/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-category-permalink/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-category-permalink/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Pixelein](https://wordpress.org/support/users/pixelein/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/urgent-plugins-created-multiple-permalinks/#post-4718563)
 * Status: resolved