Wordpress Redirecting Non Category Pages /page/nnn to their Canonical URLs
snippet in htaccess

Wordpress Redirecting Non Category Pages /page/nnn to their Canonical URLs

user3525

function wpse_199180_canonical_pages( $wp ) {
    if ( ! is_admin() && is_page() && isset( $wp->query_vars['paged'] ) ) {
        wp_redirect( get_permalink( get_queried_object() ), 301 );
        exit;
    }
}

add_action( 'wp', 'wpse_199180_canonical_pages' );