I believe you could just call the paged add_rewrite_url
last so that it is checked first. Otherwise the paged version will never get any match, since the non-paged one will always match first. Should also work if you remove ‘top’ from your arguments.
Also, check out this page for a nice way of debugging those 404 when working with custom rewrite:
http://www.dev4press.com/2012/tutorials/wordpress/practical/debug-wordpress-rewrite-rules-matching/
Related Posts:
- Change the “page” slug in pagination
- 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=
- Adding a rewrite rule to page that has no fixed variables and pagination
- Why is a rewrite rule in wordpress prevent pagination?
- Wrong rewrite rules
- How to create custom URL routes?
- How do you create a “virtual” page in WordPress
- Understanding add_rewrite_rule
- web.config conflict on IIS
- Rewrite rules not working in WordPress
- Dynamic Endpoints
- How to add custom rewrite rule to .htaccess?
- How do I remove a rewrite rule?
- generate_rewrite_rules (action) vs add_rewrite_rule (function): which one is preferred?
- 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
- add_rewrite_rule not loading correct page nor getting variables
- Preserving $_GET parameter while using custom Rewrite Rule
- How to change default page slug?
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- Rewrite url for custom post type
- add_query_vars and add_rewrite_rules
- rewrite_rule() not preserving the query string
- Need help with rewrite_rules_array
- SEO Friendly URLs for my plugin categories
- How do I add a add_rewrite_rule without it redirecting?
- Taxonomy rewrite question
- Mod_rewrite delete parameter in 301 Redirect
- add_rewrite_rule not working for page var
- Why does wordpress still strip my query var?
- When to call `add_rewrite_rule` for safety
- WordPress URL rewrite regex
- Custom rewrite rules are sending everything to index.php
- Getting add_rewrite_rule and add_rewrite_tag to work
- Blog installed in subdirectory but need to create pages in root. How to use permalinks?
- URL rewrites and pagination
- WordPress Network on IIS7/SQL Server – Rewrite Issues
- Custom comments
- Rewrite rules goes away
- Rewrite Rule for Custom Page with Query Vars in URL
- WordPress keeps writing rewrite rules to .htaccess
- Sorting archive pages with “pretty” URLs?
- Adding the amp url prefix to the beginning
- WordPress Rewrite
- add_rewrite_rule again
- 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
- Tricky URL rewrite with custom values in 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
- Add rewrite rule to call front-page.php?
- Nginx rewrite rule conflict with WordPress permalinks rule
- Add a query string to ALL links on site
- How make a multi language routes, with rewrite rules or rewrite endpoints?
- Evaluating a external rewrite rule before internal wordpress rewrite rule
- Add rewrite rule for rewrite endpoint
- Custom rewrite rule for backend/admin?
- Having trouble with using add_rewrite_rule and pagination
- Access $_POST data after redirect
- WordPress removes spaces in URL on pagination
- How to have multiple rewrite endpoints in the same URL?
- Rewriting rules: difference between ‘init’, ‘rewrite_rules_array’, ‘generate_rewrite_rules’?
- Change Query String to pretty permalink
- add_rewrite_rule is not taking effect in WordPress? .htaccess file doesn’t update
- WordPress rewrite rules for state and city
- Multiple Permalinks for Same Post
- 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?
- Regionalised Content
- Single Redirection Rule for Pages and Archive links
- 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?
- Add specific word to default page permalink
- URL Rewrite doesn’t work for nested pages
- Flush Rewrite Rules on init or rest_api_init?
- Plugin action rewrite rule – non_wp_rules
- hard flush_rewrite_rules() not regenerating .htaccess
- Map alt domain to specific section of website w/o MU
- Rewrite URL – insert custom variables as a directory path
- Pagination problem
- Rewriting URLs in WordPress
- add_rewrite_rule() to route to file other than index.php
- How to properly rewrite url by custom var
- Rewrite rule to load images from production does nothing
- Custom query_vars and parse_request on wp-admin
- ‘rewrite_rules_array’ or ‘generate_rewrite_rules’ for adding custom rewrite rules?
- Rewrite Rules Are Redirecting and Not Passing VARs
- Can’t add external rewrites
- WordPress rewrite rules don’t need ^?
- Have two different URLs show the homepage