On my Wordpress site, house is a page with short code written in it to paginate a get terms loop.
Currently below urls works perfectly to return 2nd page of the loop
/house/?paged=2
/index.php?pagename=house&paged=2
Then I added the below
function custom_rewrite_basic() {
add_rewrite_rule('^house/page/([0-9]+)/?$', 'index.php?pagename=house&paged=$matches[1]', 'top');
}
add_action('init', 'custom_rewrite_basic', 10, 0);
However /house/page/2/ still returns 404 not found.