Skip to main content
added 8 characters in body
Source Link
cjbj
  • 15k
  • 16
  • 42
  • 89

This question is a duplicate of Disable ONLY URL auto complete, not the whole canonical URL system

Try this filter

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' );

}

add_filter( 'redirect_canonical', 'remove_redirect_guess_404_permalink' );

Or this plugin: https://wordpress.org/plugins/disable-url-autocorrect-guessing/

This question is a duplicate of Disable ONLY URL auto complete, not the whole canonical URL system

Try this filter

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' );

Or this plugin: https://wordpress.org/plugins/disable-url-autocorrect-guessing/

This question is a duplicate of Disable ONLY URL auto complete, not the whole canonical URL system

Try this filter

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' );

Or this plugin: https://wordpress.org/plugins/disable-url-autocorrect-guessing/

Source Link

This question is a duplicate of Disable ONLY URL auto complete, not the whole canonical URL system

Try this filter

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' );

Or this plugin: https://wordpress.org/plugins/disable-url-autocorrect-guessing/