Why is wordpress redirecting to an existing page if the uri is staring like an existing page instead of redirecting to a 404 ?
Example, i have theses pages
mysite/aeroport
mysite/intralog
But if I go to
mysite/aeroport/intra
Instead of going to a 404, WP is redirecting me to the translated english version of intralog
mysite/en/intralog
Same if I do mysite/aeroport/medi, it's redirecting me to mysite/medias instead of a 404
I'm using polylang, I can't disable it, but all my other plugin are disabled.
Why is wordpress redirecting to an existing page if the uri is staring like an existing page instead of redirecting to a 404 ?
Example, i have theses pages
mysite/aeroport
mysite/intralog
But if I go to
mysite/aeroport/intra
Instead of going to a 404, WP is redirecting me to the translated english version of intralog
mysite/en/intralog
Same if I do mysite/aeroport/medi, it's redirecting me to mysite/medias instead of a 404
I'm using polylang, I can't disable it, but all my other plugin are disabled.
Share Improve this question asked Aug 10, 2020 at 14:22 lucrecelucrece 1248 bronze badges1 Answer
Reset to default 2Does this WPSE article help?
Looking at this article and similar, I'd recommend reading up on the purpose of this feature as you may not want to (fully) disable it.