Old URLs (404s) randomly redirecting to different posts on their own?

[ad_1]

I have old urls that are no longer there ie www.site.com/xdirectory/13/ that are redirecting to a single blog post. I did have redirect plugin installed but I have no redirects set and I even disabled it. I’ve checked .htaccess and don’t see anything there. I have no idea why it’s doing this and I can’t find the reason why. If I got to a random URL without /directory/ it just goes to 404 but for some reason anything in /xdirectory/ redirects to a post?

Can someone please help me with what other steps I can take to find the route of the problem? I’d rather not openly post the URL here. I wonder if it’s something I did but don’t remember in a redirect and now I can’t remove it.

[ad_2]
1 Comment
  1. This is known as the “guessing feature” and does what it sounds like. WP tries to guess the correct URL thinking it could be a typo. This is core WP functionality.

    You can add this to your functions.php to disable it:

    add_filter( ‘redirect_canonical’, ‘__return_false’ );

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer