Support » Fixing WordPress » are these weird redirects explainable?

  • It’s not a problem as such, just something weird that’s bothered me for a while.

    When I type in a non-existent page like or, it automatically redirects to an existing post with the same keyword first in its title, like or

    Is this exclusive to my website, or can anyone explain why it might be happening?

    It’s annoying to be honest. If someone types an incorrect address they should get a 404 page, not this.

    Anyone had the same problem, or know what I’m talking about?


Viewing 7 replies - 1 through 7 (of 7 total)
  • Hmm. Yeah. That doesn’t seem right at all. I’ll see if there’s a bug for it and raise one if not.

    Edit – raised here.

    I think this might be a browser issue. At least in IE7 is auto-complete is turned on it will have the same results.

    I don’t think so. I mean auto-complete I could see changing the word tom into tomato (for example). It shouldn’t change


    as that’s a step too far.

    Right, not auto-complete.

    Mine works pretty much like yours but if I type a “p” or “pa” or “par”
    or “part” it takes me to the same post but if I type in “partt” I get a 404. I think that is how I would expect it to work.

    Thanks all for the input, and mrmist for raising the issue to WP.

    Hopefuly will be fixed in 2.8, weird all the same.

    I had the same problem, not fixed in 2.8 either.

    I ended up in disabling the canonical redirects all at once (the bug is in wp-includes/canonical.php). To do that, as suggested here, I created a plugin called disable-canonical-redirects.php which contains the following code:

    Plugin Name: Disable Canonical URL Redirection
    Description: Disables the "Canonical URL Redirect" features of WordPress 2.3 and above.
    Version: 1.0
    Author: Mark Jaquith
    Author URI:
    remove_filter('template_redirect', 'redirect_canonical');

    Upload the file in wp-content/plugins and activate it from the Manage Plugins page as usual. No problem of weird redirects anymore :=)

    Just an an addition, maybe useful for understanding the bug: not only it was guessing, say –>

    but it was also able to rip off added the tail of the URL (which was my main problem), like redirecting –>

    that is denying the localisation I had in my web page.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘are these weird redirects explainable?’ is closed to new replies.