wordpress automatic URL ‘page’ parameter rewrite

Any reason why you need to keep the ?page= in the url? If you just need to get the value of the page you can use:

// will return value after "paged" pages "test/page/2" $paged will be 2
$paged = get_query_var('page');

tech