Got it to work, changing the regex from (.+) to (.*)
Maybe helpful for others searching same rewrite on search and pagination.
add_rewrite_rule('discover/interiors/interior-results/(.*)/page/([0-9]{1,})/?', 'index.php?pagename=discover/interiors/interior-results&tag1=$matches[1]&paged=$matches[2]', 'top' );
add_rewrite_rule('discover/interiors/interior-results/(.*)', 'index.php?pagename=discover/interiors/interior-results&tag1=$matches[1]', 'top' );
Related Posts:
- Change the “page” slug in pagination
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Disable wordpress pagination URL rewrite for specific page
- Remove “/page/1” from the URL
- Disable Pagination on Pages
- Changed pagination URLS to use p= instead of paged=
- Why is a rewrite rule in wordpress prevent pagination?
- Wrong rewrite rules
- How do you create a “virtual” page in WordPress
- Rewrite rules not working in WordPress
- How to add custom rewrite rule to .htaccess?
- Preserving $_GET parameter while using custom Rewrite Rule
- Taxonomy rewrite question
- Why does wordpress still strip my query var?
- When to call `add_rewrite_rule` for safety
- Getting add_rewrite_rule and add_rewrite_tag to work
- URL rewrites and pagination
- Rewrite rules goes away
- Rewrite Rule for Custom Page with Query Vars in URL
- Dynamic URL, not a physical page within the database
- Rewrite Rule for Post “Subpage”, with pagination
- Need to make a php file inside theme accessible via url
- WP Rewrite the last two parts of the URL
- Rewrite loading custom template file but is_home() returns true, and there’s no 404
- add_rewrite_rule and pagination issue
- Rewrite rule for admin-ajax.php
- Nginx rewrite rule conflict with WordPress permalinks rule
- Access $_POST data after redirect
- WordPress removes spaces in URL on pagination
- Change Query String to pretty permalink
- add_rewrite_rule not working for language specific characters
- How to add a custom redirect rule for subdomains?
- Custom rewrite rule
- How to remove WordPress category from URL and have a custom pagination parameter/rewrite?
- Add ‘articles’ prefix before blog posts url without affecting pagination
- How to do Basic URL Rewrite Without Redirecting
- Is it possible to remove feeds from rewrites?
- URL Rewrite doesn’t work for nested pages
- Rewrite URL – insert custom variables as a directory path
- How to properly rewrite url by custom var
- Can’t add external rewrites
- url rewrite parsing a custom url parameter not working
- How to add custom variable in url without redirect?
- Using category slug in add_rewrite rule
- add_rewrite_rule ignoring other params than the “p” param
- Url Rewriting a dynamic wordpress page
- How to catch Rewrite rules then display a specific post?
- Adding two rewrite rules
- Load an url with minimal/no DB queries
- Monkey Man Rewrite Analyzer says my rule will trigger but it doesn’t [closed]
- .htaccess rewrite
- Auto generate rewrite rules for multiple taxonomies
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- Custom rewrite causes 404 on pagination
- Taxonomy Pagination Rewrite
- Rewrite query string to path
- Rewrite API -Adding a parameter before the slug
- Help with rewrite rules for two post types
- Multiple query vars sorting combination and url rewrite
- WordPress keeps writing rewrite rules to .htaccess
- Rewrites rules disappear after a while
- Flush rewrite rules on option update with Settings API
- Localize URL bases
- Not able to rewrite the pagination URL for the posts
- Rewrite specific action url
- Using URL rewrite to add custom URL for custom post type
- WordPress simple Url Rewrite
- Custom rewrite rule not working
- Rewriting in wordpress url
- Add pagination to a template loaded by query variable
- Pagination for custom post types – url rewriting
- Rewrite custom taxonomy slug – but only parent items
- How can I allow trailing slashes on some URLs without a redirect, but not on others?
- Adding the amp url prefix to the beginning
- wordpress path generation from rewrite rule
- Rewrite WordPress Url from root to subfolder without moving files
- WordPress pagination broken for page 2,3 with custom permalink. Redirects to baseurl
- How to redirect to a login virtual page?
- Ugly URLs when there’s pagination
- How do I rewrite URL that has custom parameter
- Help adding custom url, rewrite_rules_array
- Why is there a 404 on page 2+ for my search page?
- Rewrite rule for post as a child of a CPT
- Broken page redirect
- URL Rewrite and Archive Template Files – Post Type vs. Taxonomy
- Remove trailing slash
- add_rewrite Rule
- .htaccess RewriteBase equivalent for WordPress – Passing a URL as a variable without getting a 404
- URL Rewrite for CPT single posts
- Migration from old CMS to WordPress 301 redirection rules?
- How to make a custom route with any-string-part/number-part pointing to an existing page?
- Using add_rewrite_tag to create urls for page sections
- Rewriting WordPress URLs
- Can’t get pretty permalinks to work without index.php
- Rewrite and replace url wp-admin/edit.php and wp-admin/post-new.php
- Programmatically add a custom url route “/category/index.json” to return a collection of posts in json
- WP-Include rewrite directory
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?