How to handle paging/pagination with a custom permalink?

I’ve shared this exact frustration before. The following should help return any lost sanity.

Your first rewrite is pretty loose and is not seeing your second rewrite because ‘page’ matches your second segment of ([^/]+). The way to fix this is reverse the order of registration within the code. If the paged rewrite is below the looser rule, place it one line above or vice/versa wherever you register the rewrite rules.

You’ll see the rules appearing properly within the analyzer.

Hope this helps!