Remove WordPress Redirecting to Nearest Matching URL

The solution is to add the below code to your theme’s functions.php file:
remove_filter('template_redirect', 'redirect_canonical');

Comments

Popular posts from this blog

Stop video playing when Bootstrap modal is closed