SiteCozy

  • My account

How to disable the URL autocomplete feature from WordPress

2018-10-31

As we explained in a past article, we found that sometimes wordpress URLs could be redirected to other post articles with no connection whatsoever with the first URL. 

There are two options to disable the autocomplete feature from wordpress URLs. The first one would be to add the following code at the end of your function.php

function remove_redirect_guess_404_permalink( $redirect_url ) {
    if ( is_404() )
        return false;
    return $redirect_url;
}
add_filter( 'redirect_canonical', 'remove_redirect_guess_404_permalink' );

You can also install a wordpress plugin that contains this code. 

Disable URL Autocorrect Guessing

Related Posts:

  • Is the WordPress URL autocomplete feature bad for SEO?
  • How to identify the wordpress plugin that is responsible for Google traffic drop?
  • How to retrieve data from MongoDB with NodeJS
Download our Broken link checker freeware here Buy a license key for the Sitecozy broken link checker

Customer Login

Lost password?

Categories

  • Webmaster advice
  • SEO advice
  • Web hosting
  • SiteCozy link checker KB
  • WordPress theme & plugin reviews
  • All articles
Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We test each product thoroughly and give high marks to only the very best. We are independently owned and the opinions expressed here are our own.

Copyright Sitecozy 2018