Remove WordPress Redirecting to Nearest Matching URL

Add the below php code to your active theme’s functions.php:
remove_filter('template_redirect', 'redirect_canonical');

Comments

Popular posts from this blog

Creating Protected routes in ReactJS

Redirect http to https in codeigniter