Title: Disable primary category redirection
Last modified: October 22, 2020

---

# Disable primary category redirection

 *  [Goudie](https://wordpress.org/support/users/goudie35/)
 * (@goudie35)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/disable-primary-category-redirection/)
 * Hello 🖐
 * I am using the primary category setting for products (Woocommerce). Unfortunately
   currently it is useless, for a simple reason: the new permalink works, but redirects
   to the original URL.
 * Several questions :
 * * Is this normal ?
    * Is this a limitation with WP/Woo or a bad practice to do
   so? * Is there a way to prevent this ?
 * Extra question:
 * * Is it possible to import the primary category with a CSV product import (using
   the Woocommerce import tool) ? Custom meta?
 * Thank you

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

 *  Plugin Author [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * (@rainbowgeek)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/disable-primary-category-redirection/#post-13577545)
 * Hi,
 * can you share an example please?
 * The primary category is a post meta so yes it’s easy to import it:
 * _seopress_robots_primary_cat
 * Value: category ID
 *  Thread Starter [Goudie](https://wordpress.org/support/users/goudie35/)
 * (@goudie35)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/disable-primary-category-redirection/#post-13586049)
 * Example :
 * site.com/shop/defaultcat/product
 * If I set a custom primary category. Permelink is updated.
 * site.com/shop/customcat/product
 * But it’s 301 redirected to URL with default cat (I want the exact opposite)
 * Also default cat is displayed on the product page.
 * I can provide URL in PM
 * Good news for the post meta, I will save a lot of time! 👍
 *  Thread Starter [Goudie](https://wordpress.org/support/users/goudie35/)
 * (@goudie35)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/disable-primary-category-redirection/#post-13586069)
 * More info:
 * – the links are good from others pages (but still redirecting to default).
 * – english version, same issue (redirecting) but links are wrong, showing default
   cat URL everywhere
 *  Plugin Author [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * (@rainbowgeek)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/disable-primary-category-redirection/#post-13616157)
 * Hi,
 * – try to clear your cache if you have a caching plugin
    – try to clear your browser
   cache too – check your redirections from SEO > Redirections
 *  Thread Starter [Goudie](https://wordpress.org/support/users/goudie35/)
 * (@goudie35)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/disable-primary-category-redirection/#post-13726482)
 * Hello Benjamin,
 * The problem is still there.
 * – cleaning the cache doesn’t change anything (the problem occurs even when disabled)
   –
   same for cache browser even when using private mode – redirection feature is 
   disabled
 * 😕

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

The topic ‘Disable primary category redirection’ is closed to new replies.

 * ![](https://ps.w.org/wp-seopress/assets/icon-128x128.gif?rev=3158903)
 * [SEOPress - AI SEO Plugin & On-site SEO](https://wordpress.org/plugins/wp-seopress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-seopress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-seopress/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-seopress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-seopress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-seopress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Goudie](https://wordpress.org/support/users/goudie35/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/disable-primary-category-redirection/#post-13726482)
 * Status: not resolved