url redirection - Wordpress: Incomplete URL redirects to actual page -


Strange behavior for a WordPress site when I enter an incomplete URL, instead of getting a 404, I have a page whose

URL starts with incomplete login

For example, when I enter it in my browser:.

I am redirecting to:

Many pages are starting with the initial URL, but I would like the user to be given 404, or I will be able to install which pages are served with being able to recover.

This behavior is for other pages with the same structure.

I would appreciate any help / suggestions of beautiful mystified.

"itemprop =" text ">

This is standard WordPress behavior, and URL is part of canonicalisation process-there is one, but This is not yet made in a release.

In the meantime, there is a solution that has been suggested in the ticket:.

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

... which also has a supporting soul.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -