Support » Fixing WordPress » permalink URL with one letter redirect

Viewing 3 replies - 1 through 3 (of 3 total)
  • Also this is fresh WordPress install. I haven’t installed any plugin.

    This is default functionality for canonical URLs.

    Try this in your functions.php but you will also lose the benefits of automatically redirecting URLs if you change the URL of a post.
    remove_filter('template_redirect', 'redirect_canonical');

    There is also a redirect_guess_404_permalink but it doesn’t seem to be pluggable with the remove_filter. There is a work around listed here as well.
    http://core.trac.wordpress.org/ticket/16557

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

    It works perfectly.
    Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘permalink URL with one letter redirect’ is closed to new replies.