You can try these rules:
reviews/([^/]+)/page/?([0-9]{1,})/?$
reviews/([^/]+)/?$
It’s informative to check out the active rewrite rules with:
function show_rewrite_rules( $rules ) {
if(is_admin()) echo "<pre>".print_r($rules,true)."</pre>";
return $rules;
}
add_filter('rewrite_rules_array','show_rewrite_rules');
and then visit /wp-admin/options-permalink.php
.
There exists also some good plugins for analysing the rewrite rules, for example the Monkeyman Rewrite Analyzer.
Related Posts:
- How to create custom URL routes?
- web.config conflict on IIS
- How do I remove a rewrite rule?
- add_rewrite_rule: $matches var not replaced by captured value
- How-to add rewrite rules to point the uploads folder to a subdomain
- Rewrite Rules for Multiple (more than 2) Taxonomies
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- rewrite_rule() not preserving the query string
- SEO Friendly URLs for my plugin categories
- Mod_rewrite delete parameter in 301 Redirect
- add_rewrite_rule not working for page var
- Custom rewrite rules are sending everything to index.php
- WordPress Network on IIS7/SQL Server – Rewrite Issues
- Custom comments
- WordPress keeps writing rewrite rules to .htaccess
- Adding the amp url prefix to the beginning
- WordPress Rewrite
- Tricky URL rewrite with custom values in url
- Add rewrite rule to call front-page.php?
- Add a query string to ALL links on site
- How make a multi language routes, with rewrite rules or rewrite endpoints?
- Add rewrite rule for rewrite endpoint
- Custom rewrite rule for backend/admin?
- Having trouble with using add_rewrite_rule and pagination
- Rewriting rules: difference between ‘init’, ‘rewrite_rules_array’, ‘generate_rewrite_rules’?
- Multiple Permalinks for Same Post
- Add specific word to default page permalink
- Remove “/page/1” from the URL
- hard flush_rewrite_rules() not regenerating .htaccess
- Rewriting URLs in WordPress
- add_rewrite_rule() to route to file other than index.php
- Rewrite rule to load images from production does nothing
- ‘rewrite_rules_array’ or ‘generate_rewrite_rules’ for adding custom rewrite rules?
- Rewrite Rules Are Redirecting and Not Passing VARs
- WordPress rewrite rules don’t need ^?
- custom template rewrite
- Custom rewrite not working
- My WP_options db rewrite_rules Does Not Work
- Disable Pagination on Pages
- Custom rewrite_rules – only pass numbers and not alphabetic characters
- How to add a custom redirect rule for Post as subdomains?
- How to preserve the query string while using add_rewrite_rule and default public query vars
- Rewrite custom post type URL parameters
- How to use add_rewrite_rule in subdomain
- Rewrite the default post object’s permalink
- QSA Rewrite Rule
- Enpoint Not Found in Rewrite Tag Permalink
- URL Rewrite and add_query_var not working
- Custom Rewrite Rules
- URL Rewrite with Custom Variables
- ReWrite rule for files of a previously standalone blog moved to network
- Rewrite /category/cars into /topics/cars
- Best way to trigger rewrite rules
- Trouble with question mark in rewrite rule
- show ALL latest posts with archive.php on example.com/latest
- Name page template properly
- One off rewrite for single post-type slug (show normal page with same URL instead)
- What URL rewriting rule should I write to retrieve a var in the URL?
- How to use wp rewrite to hide form action url?
- URL rewrite in theme doesn’t seem to be working
- WordPress Rewrite rule is not working
- Redirect URL to an existing page with query string or #! added on
- How do I make WordPress revise an .htaccess file a certain way?
- How to change an existing wordpress page rewrite rule?
- Trying to add array of paths to post permalink
- How to rewrite URL back to default custom URL if no destination found
- URL rewriting in wordpress using parameters
- Rewrite rules – page does not exist
- Use URI suffix as parameter and ignore when resolving page
- Why wordpress rewrite my custom URL?
- Rewrite rule regex help required
- Redirect empty search to another page
- Dynamic URL with rewrite rule not working
- Rewrite Rules are Redirecting
- Rewrite dynamic URLs as pretty URLs in WordPress functions.php (add_rewrite_rule) – what’s wrong with my code?
- How to get relative page for every post: /post-1/contact. /post-2/contact
- Rewrite rule not working, suspect redirect string
- Issue with custom rewrite for products and permalinks
- Prefix only some posts with a custom prefix
- WordPress Rewrite Rule to EITHER Match 1 or 2 Taxonomies when adding to URL
- How to use a capture from a rewrite rule inside a php file (like single.php)?
- url rewriting on custom post type
- Rewrite rule not redirecting correctly
- Rewrite Rule added but showing 404 rather than specified page
- Custom taxonomy Rewrite Rule
- I want to add one extra field to my URLs, I’m using Rewrite functions but it doesn’t work
- Font Page overrides rewrites
- rewrite rules social share links
- add_rewrite_rule is not fired
- Rewrite rule is not working
- rewrite rule for home/index page
- Post Type Rewrite Custom
- WordPress Custom Rewrite Rule
- Additional .htaccess rules based on wp page
- URL Rewriting in WordPress
- Rewrite URL variable to custom path
- Rewrite function
- Wrong rewrite rules
- Rewrite and replace url wp-admin/edit.php and wp-admin/post-new.php