I finally figured out how to fix the issue I had.
I added the following into my rewrite_rules function:
add_rewrite_rule('^mysearch/location/([^/]+)/page/([0-9]{1,})/?$','index.php?page_id=200&location=$matches[1]&paged=$matches[2]','top');
So now my URLs are exactly as I wanted them: /mysearch/location/SUBMITTED-INFO/page/WHATEVER
Related Posts:
- add_rewrite_rule – working fine but broken for pagination
- How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/
- Why am I getting a 404 on anything past page 1 of my query?
- remove_query_arg() on rewrite rule
- Pagination: /tags/tag_name/?paged=2 gives a 404 error
- How to stop WordPress returning 404 on paginated pages after using add_rewrite_rule()?
- rewrite url with parameter or pagination beyond certain value does not work
- stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
- 404 when using pagination in a category
- Problem with Paging 404
- Prevent WordPress to remove query vars from url
- URL rewrite breaking pagination
- Search pagination rewrite to fix 404
- Change the “page” slug in pagination
- How to display pagination links for WP_User_Query?
- How to show a single post on the front page but have normal paging?
- How to add CSS Class to previous_post_link or get previous/next post link URL
- Aggregate comments, with pagination
- Strange paginate_links behavior. First page link is always whatever page I’m on, all other links are correct
- List posts based on first letter of posts
- Pagination for sub-pages
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- Custom loop pagination issue ( pagination not showing up )
- Paginate tags page
- Category pagination shows same posts
- WordPress Pagination not displaying posts after certain page
- Show next / previous text (button) all the time
- wordpress Next/Previous post in same category not working
- Pagination difficulty using custom query in genesis-based custom theme
- Placing Ads after every 10th Post with Infinite Scroll
- How to implement pagination in backward way eg. first – 20 – 19 – 18 – … – 3 – 2 – 1 – last
- WordPress Pagination not working, any ideas?
- Next & Previous (Pagination in this case) Not Appearing
- Limit Timber pagination number items
- List all posts by year with pagination
- WordPress wp_link_pages show only next/prev link
- Pass additional parameter in the URL
- Post timeline (pagination with date, not numbers)
- Why do next pages load the same content rather then older articles?
- Nested Pagination
- Pagination stopped working after assigning custom page template to new page (different slug)
- I want to remove numbers from the_posts_pagination function
- Yoast’s rel=“next” & rel=“prev” tag don’t work on static homepage’s paginated pages
- Using paginate_links() to generate “01, 02, 03, 04” paginations
- Authors list Pagination : result set from $wpdb->get_results()
- WP-PageNavi on Custom page template not working
- Paginated Archives or Loop by Month
- Pagination Not Working on `WP_Query` Archive Page
- How do I make my pagination work?
- How to use custom previous/next link ?
- How to paginate a list of child pages
- Show content based on page number
- Pagination issue in archive.php
- How to use pagination?
- How to get category/tag in URL for Pagination links?
- Include a leading zero in pagination
- Pagination not work on page but work on category
- Custom category.php paging shows the same posts
- Pagination Links showing incorrect previous page number
- How to limit page pagination… again
- Conditional pagination li’s
- Paginate Links – Mid Size Less Than 2
- Different page template for paginated content?
- tax_query does not work with pagination with custom query (both wp_query and query_posts())
- Pagination for multiple queries merging into one Loop
- paginate_comments_links() not working
- Adding paging to get_posts()
- Can I paginate this get_attachment query?
- How to Show Next-Previous Link Only
- WordPress static home page pagination not working
- How to create a WordPress gallery with pagination
- Broken pagination links on WP 4.9.10 blog pages
- Excluding posts without affecting the number of posts per page
- get_next_posts_page_link adds Inexistent directories
- why pagination not working in page template
- 404 page not found on pagination in home page while navigating to next page
- Only show pagination when post count exceeds show post
- Pagination – linking back to base page – Page 1
- Custom Pagination shows same posts on each page
- Numbered pagination showing all numbers instead of paginated blocks
- Show next and previous page number
- Search pagination link redirecting to a link that doesn’t work with pagination
- Need help on wordpress pagination script
- Update Gallery Randomly in every hour with no duplicates?
- Search URL gives 404
- How to paginate query using get_categories()
- Need help with get_posts pagination
- WordPress 404 pagination (/page/2) error?
- Custom pagination generates title 404
- Excluding certain post status’s from pagination
- WordPress creating 404s under blog tags
- Pagination work! But title still says “Page Not Found”
- WordPress pagination URL posts not load
- Next / Previous Posts not working
- Default pagination in Home/Front page
- Use cookies in pagination
- Always show Next and Previous button in wp_link_pages ?
- pagination leads to 404 page
- Stop pagination when static homepage is set
- Is ‘pm’ used by core?