Title: Make filter URLs respect permalink structure
Last modified: April 7, 2021

---

# Make filter URLs respect permalink structure

 *  Resolved [Ibby](https://wordpress.org/support/users/ibby/)
 * (@ibby)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/make-filter-urls-respect-permalink-structure/)
 * Hi,
    We’re building a page using your plugin and we’ve noticed that if a user
   clicks on a category tag in a single product page, they will be taken to the 
   WC product category page as set in permalinks i.e. /shop/%product_cat%/
 * The filtering system will then be broken as if a user attempts to select a different
   parent category or child of a different parent category, the filter will not 
   automatically switch to the selected parent category as the permalink will restrict
   it.
 * Is there any way to ensure the filter respects the permalink structure?
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmake-filter-urls-respect-permalink-structure%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * (@woobewoo)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/make-filter-urls-respect-permalink-structure/#post-14293388)
 * Hi [@ibby](https://wordpress.org/support/users/ibby/),
 * Unfortunately, the page you are linking to is not available – [https://prnt.sc/117crdq](https://prnt.sc/117crdq)
 * Also, we need more information to resolve this issue.
 * Please contact our internal support team.
 * [https://woobewoo.com/contact-us/](https://woobewoo.com/contact-us/)
 *  [couscousdelight](https://wordpress.org/support/users/couscousdelight/)
 * (@couscousdelight)
 * [5 years ago](https://wordpress.org/support/topic/make-filter-urls-respect-permalink-structure/#post-14379207)
 * I had the same problem with attribute displayed in product page, wheni was clicking
   on them, the URL wasn’t compatible with the filter system.
 * So, i’ve just used a single line URL rewrite in .htaccess, and it works just 
   fine.
 * the goal was to change a url like this one **attribute/genres-de-film/action/**
   
   Into : **/shop/?filter_genres-de-film=action/**
 * with this simple rule :
    **RewriteRule ^attributs/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]
   +)/ /shop/?filter_$1=$2 [L,R=301]**
    -  This reply was modified 5 years ago by [couscousdelight](https://wordpress.org/support/users/couscousdelight/).

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

The topic ‘Make filter URLs respect permalink structure’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-product-filter_a0a6df.svg)
 * [Product Filter for WooCommerce by WBW](https://wordpress.org/plugins/woo-product-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-filter/reviews/)

## Tags

 * [product filter](https://wordpress.org/support/topic-tag/product-filter/)
 * [shop filter](https://wordpress.org/support/topic-tag/shop-filter/)
 * [WooCommerce Filter](https://wordpress.org/support/topic-tag/woocommerce-filter/)

 * 2 replies
 * 3 participants
 * Last reply from: [couscousdelight](https://wordpress.org/support/users/couscousdelight/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/make-filter-urls-respect-permalink-structure/#post-14379207)
 * Status: resolved