Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
Solved with: add_rewrite_rule(‘^foo/page/([0-9]+)/?$’, ‘index.php?category_name=category1&paged=$matches[1]’, ‘top’); add_rewrite_rule(‘^foo’, ‘index.php?category_name=category1’, ‘top’); The order between these two lines here is important. See also Permalink/Pagination issue: Category base name same as page name.