Stop WordPress redirecting comment-page-1 to the post page?
Great question! WordPress assigns your comment page number to the query var ‘cpage’ which gets set when your URL has /comment-page-1/ at the end. So your culprit is in the redirect_canonical() function, line 192 of /wp-includes/canoncial.php. if ( get_query_var(‘paged’) || is_feed() || get_query_var(‘cpage’) ) { Since the redirect_canonical() function gets set as an action what … Read more