I did a quick little search on what you are trying to do and maybe this will help you out some and how the rewrite is grabbing the querystrings.
https://stackoverflow.com/questions/3307352/wordpress-custom-url-rewrites
Related Posts:
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- Add parent/child taxonomy to custom post type url
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- how to change permalinks format for pagination?
- How to change url for taxonomy pages?
- How do I get the correct URL?
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Can’t get a custom template taxonomy page to display
- How to modify URL structures in custom post types and taxonomies or terms
- How to enable hierarchical permalinks for hierarchical taxonomies
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- Permalink rewrite with custom post type and custom taxonomy
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- WP Rewrite Rules – Custom post type & taxonomy
- Pros and cons of using [taxonomy name] in place of [category name]?
- Remove base slug in CPT & CT, use CT in permalink
- WP redirects pretty permalink to query string
- Permalinks for quote authors
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- Keep taxonomy base name in post permalinks
- Permalink Structure CPT With Custom Taxonomy Fails
- Permalinks for custom taxonomy stopped to work
- Taxonomy with_front causes all
- 404 error- issues with pages after adding custom rules for posts
- How to overwrite registered taxonomy url from vendor plugin in child theme
- How to add a Rewrite Rule / Category Structure
- Customize Custom Post Type URL
- Taxonomy Pagination Rewrite
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How do I modify taxonomy term slugs dynamically?
- Permalink help with default Posts and custom Taxonomy
- Custom Taxonomy and Rewrite URL
- How do I create a permalink structure with 2 taxonomies
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Query custom taxonomy by term id?
- How to add hierarchical taxonomy with parent child relation to URL?
- WordPress custom permalink and archive link for custom post type
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How can I rewrite the URL of my custom taxonomy to include the year?
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- How to replace custom post type with custom taxonmy in permalinks
- How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?
- Rewriting url for multiple Taxonomies and Custom Post Type
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Permalinks incorrectly inserting multiple categories
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- Need help understanding a rewrite with multi-level taxonomy
- Parent cpt/child custom post type URL permalink relationship
- Taxonomy to WordPress Permalinks of custom post type
- Rewrite URL for a specific taxonomy [duplicate]
- Is there a way to create a single rewrite rule to handle multiple variables depending on what is present?
- Adding Category to Child Posts Permalink
- Need help with add_rewrite_rule
- Mixing custom post type and taxonomy rewrite structures?
- remove “index.php” from permalinks
- Retrieve posts by term id custom query
- Rewriting a custom-post-type permalink with taxonomy term?
- custom taxonomy and pages rewrite slug conflict gives 404
- Custom Post Type Permalink / Rewrite not working immediately
- Remove taxonomy base or term from url
- Custom rewrite rules for archive page and single post
- Custom Taxonomy Endpoint Pagination using paginate_links()
- Custom post type permalink endpoint
- Display category posts grouped by taxonomy
- Multiple post types – share same ReWrite slug?
- Custom taxonomy listing page when no term set (all terms)
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- restrict_manage_posts not working in 3.3.1
- How to add a custom URL placeholder to author archives?
- Adding meta values to permalink
- Archive page with multiple taxonomies rewrite
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- Make post slug have priority over category slug
- Permalinks so that one custom post type appears to be a child of another, not working
- Create permalink structure for one taxonomy archive per custom post type
- Help with a TV series Rewrite structure
- Taxonomy archives based on Custom Post Type
- URL rewrite rules for multiple taxonomies query
- Custom permalinks
- Remove Custom Taxonomy Base
- Rewrite rule for custom taxonomy
- Why does wordpress still strip my query var?
- What is the best way to relate different custom post types?
- Optional taxonomy in cpt permalink
- post_type_link not working for posts without terms
- Child terms with improper parent in the url should redirect to 404
- Two taxonomies with the same slug
- Custom taxonomy still using query URL after fixing error
- Using Custom Taxonomy in Default Post Slug
- How to handle custom taxonomy archive when no posts will have that taxonomy
- Cannot use dynamic prefix for WooCommerce permalink
- Custom templates based custom url structure in wordpress
- Taxonomy archives based on Custom Post Types
- Custom post permalinks for specific categories
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- Rewrite taxonomy permalink appended to CPT archive url