Every WordPress post has its onown slug, which is automatically generated by your post’s title. If you decide to change the post slug later, WordPress will remember the old one and redirect it to the new one. It’s possible to prevent old post slug redirection in WordPress by adding removing a couple of actions from your WordPress core with a small snippet.
Just add following code to your current theme’s Just add following code to your current theme’s functionsfunctions.php file file to prevent WordPress from redirecting old post slugs to new ones:
remove_action( 'template_redirect', 'wp_old_slug_redirect');
remove_action( 'post_updated', 'wp_check_for_changed_slugs', 12, 3 );