The pattern (.+)
matches any character, including the slash, so any combo of parameters will always match your first rule, with anything that follows being passed as the version query var. Change all instances of (.+)
to ([^/]+)
to match all characters except the slash.
Related Posts:
- How to build custom WP admin with custom URLs
- I want to change url structure of my created archieve pages
- Page Permalinks: Custom URLs
- How to Change 404 page title
- Adding Custom Link anchors in the top menu that points to specific sections of the site home page
- Create subpage /user/ or /my-profile/ like /author/ with additional query like /user/user123
- How to change URL Custom Page?
- Passing page url into a custom field via the Press-This bookmarklet
- Add filename to attachment page url
- add_rewrite_rule won’t work
- Remove Author Slug & Replace With Username
- How can I get the page url slug when ‘post_name’ returns an id?
- open all .docs in word online
- How can I get the intended URL in a 404?
- Creating Search Engine Friendly URL’s with Word Press
- Why is my mod_rewrite not working?
- URLs and navigation in custom themes
- How to change the category url jusy show /category/%category_id% in wordpress?
- redirect post id to post full url
- change url for static files in /wp-admin with a cdn url
- WordPress 3.0.1 on IIS 6 Web Server PermaLink Issues
- How do I redirect a post url to a custom url?
- website with pretty permalinks except pagination
- add_feed rewrite overwriting standard permalinks
- Custom Post Type, post-formats associated to custom post type > 404 archives
- How do I get posts to appear at mydomain.com/blog?
- title tag function
- query variables for custom taxonomies
- How do I run a web app in my WordPress theme without the “wp-content/theme/…/webapp” in URL?
- New to WP: links on static homepage are not working
- URL issue after setting up Custom Structure in Settings >> Permalinks
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- How to add rewrite rule for product compare page?
- Replace an URL with an new URL which has a “?” in it
- Url rewriting on custom post with CPT UI plugin
- Call a duplicate registration form with other url
- wp_rewrite not working on third level url
- Show post content in two different places without redirect
- Pass query param to custom page
- How do I fix the url when clicking on portfolio item?
- Create a page for each database table entries
- Include specific category in URL automatically
- Customize Widget Navigation
- Is it possible to add custom badges to product attributes conditionally, based on custom field?
- wp_enqueue_script JS code runs too late (after user begins interacting)
- Created Custom Block – When I come back to edit post/page and change my block content – Update button stays disabled
- Can I change the URL structure for a CPT only?
- Hook before user is created and make some custom validation
- I found this code to be very useful, how can I change it to a text that display “Product versions and period of last update” rather than a button?
- How do I make Dynamic Student Admission Form?
- Make the home page’s slug visible in the browser’s URL bar
- WP Search Form Query: Add Author’s posts into search query
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- returning the currect URL for nested posts
- Prevent WordPress from automatically installing a new theme each year
- Setting Parent Page to Post
- Dynamic Sections
- Creating a “Delete”-Button for Metadata userspecific
- Change default Video Player without Plugin
- Changing update message from Newspaper child theme
- Create Custom URL structure for specific Post category using Post ID instead of post name
- Custom default settings for WP native Gallery Block
- Add custom border across footer widget area
- Weird urls after moving site from local env to a server
- Make the home page template my archive/category page template without code duplication
- Don’t update modify time post on Quick Edit
- Is it possible to auto sharing post on social network from specifc categories or tags
- How to show parent taxonomy using get_the_terms?
- wp_insert_post custom taxonomy multiple Category not added
- Custom menu not showing even though it shows as being registered?
- Open login logo URL in new tab
- Get custom text if in Category
- How to change the login page without a plugin and not only customizing logo and text around the form?
- Conditional Logic on CF7 dropdown options
- Customizing woocommerce product page
- Change admin_title of a plugin using code snippet/functions
- Change language on website and change currency with url query
- How to make WordPress search page use a relative path
- dynamic URL rewrite
- Create Miltiple Category Base
- Removing “Failed” query argument upon successful login
- Validate user login in php
- How to get Previous Visited Page Information
- Global theme customization multisite
- Select input in metabox not updated
- How to add Custom Css within the Editor?
- Woocommerce custom archive page custom content and shortcode
- optimal taxonomy or custom post types
- Page flickers in customization mode
- WordPress search on a custom table
- export and import wordpress customization
- Custom route and extract data from slashes and parameter
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- A different permalink structure for different categories
- Custom field not editable by the user
- Will WordPress updates remove Gutenberg Additional Classes?
- WordPress category custom title
- How to create multipage form and redirect to specific URL based on inpput?
- WP_Query – sort the results by meta value custom attribute wocoomerce
- add_rewrite_rule with optional parameters