You don’t need a custom rewrite rule to handle this, just set your taxonomy rewrite slug like:
'rewrite' => array( 'slug' => 'projects/category/%project_cat%' )
Related Posts:
- Pagination problem
- Pagination for custom post types – url rewriting
- Paging not working for hierarchical custom post type
- Multiple post types – share same ReWrite slug?
- Changing the URL Structure of a Paginated Custom Post
- How to modify URL structures in custom post types and taxonomies or terms
- Adding meta values to permalink
- Archive page with multiple taxonomies rewrite
- Permalinks so that one custom post type appears to be a child of another, not working
- Change page /2 to /transcript with a Rewrite
- Permalink rewrite with custom post type and custom taxonomy
- Custom post type permalink changing itself every other change
- Prepend meta_value to permalink of post
- Pagination Doesn’t Work
- WordPress returns 404 on custom rewrite rule conflict in parameters
- Rewrite custom post type url’s adding meta box values
- Custom Post Type Rewrite Rule for Author & Paging?
- Multiple parameters in a custom post type url rewrite
- WP Rewrite Rules – Custom post type & taxonomy
- Custom Post Type pagination when CPT ‘rewrite’ rule and a page have the same slug
- Remove base slug in CPT & CT, use CT in permalink
- WordPress Rewrite rule for nested post types
- Custom Post Type rewrite redirects to homepage
- single-{post_type}.php is not loaded despite flushing rules
- Custom Permalink Tag breaks Pagination
- Adding paged query to custom URL rewrite
- Custom Permalink for Taxonimie and Custom Post Type
- how to get archive urls with same origin for custom types and terms?
- Rewrite numeric ID parameter for hierarchical custom post type
- Customising rewrite rules for CPT single post URL to work as paged URL
- Remove custom post type slug not working for child pages
- How to Combine Two Custom Post Types into Single Permalink Structure
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- Permalink Structure CPT With Custom Taxonomy Fails
- Making a custom help center page
- Remove url rewrites for registered taxonomies
- Rewrite slug of custom post type to include post-id
- How to change custom post type permalink structure
- Front custom edit post page for each post
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- Can’t get custom rewrite tag, query var, permastruct (permalink structure), and rewrite rule to work properly together
- Rewrite Question Mark in Post Template to Make it Pretty URL
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- Customize Custom Post Type URL
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Custom Permalinks with CPT and Hierarchical Taxonomies
- cpt and page sharing same base permalink
- Hide or disallow default custom post type url?
- How to get list of taxonomy slugs ordered parents>childs?
- Rewrite Endpoints and CPTs – How to use in a plugin
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- add_rewrite_rule and passing variables for custom post types
- Pretty URLs and custom post types
- Specific routing for CPT
- Pagination custom post type not working with rewrite slug
- Custom Rewrite Rule for Custom Post Type with URL Param
- WordPress custom slug rewrite
- Combine multiple CPT names to create valid permalinks
- Set parent for custom post type archive rewrite url
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- WordPress custom permalink and archive link for custom post type
- How to rewrite the post slug of a custom post type post
- rewriterule not working
- Modifying rewrite rules to use /category//
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Taxonomy rewrite pagination 404
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Rewrite rules for custom post type
- Custom taxonomy and post type rewrite rules
- WordPress rewrite rule doesn’t work unless post category is explicitly called in regex
- Url Rewriting a dynamic wordpress page with parameters
- Custom taxonomy terms as children of multiple custom post types
- Rewrite URL for CPT to domain/post-name/post-id
- How to apply multiple rewrite_rule to a single custom post type url?
- How to properly set the rewrite rules for this case?
- Custom permalink structure for custom post types including multiple taxonomy
- CPTs relationship
- Change CPT permalink to use the category
- add_rewrite_rule wordpress ignoring url pattern, wp rewrite not working
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Redirect Custom Post Type from Child Taxonomies
- Rewrite url for custom post type with specific url
- Custom Post Type canonical link / pagination redirecting to root
- Rewrite URL of Specific Post of Custom Type
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Pagination URL in Custom Content Type
- Two CPT: one is using part of the custom rewrite slug from the other
- Custom post type rewrite and wp_pagenavi interfering with each other
- WordPress custom post type rewrite rule matches all pages returning 404
- redirect old post type url to new structure url
- Parent cpt/child custom post type URL permalink relationship
- rewrite rules add a folder in the path
- Custom Taxonomy in Permalink from post type
- Custom post type permalink structure
- add_rewrite_rule not working in Custom Post Type UI Plugin
- CPT Archive Pagination – Page not found
- Custom archive URL as a subfolder of the custom post type slug
- What is the best way to relate different custom post types?