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.com/aeroport
mysite.com/intralog
But if I go to
mysite.com/aeroport/intra
Instead of going to a 404, WP is redirecting me to the translated english version of intralog
mysite.com/en/intralog
Same if I do mysite.com/aeroport/medi, it’s redirecting me to mysite.com/medias instead of a 404
I’m using polylang, I can’t disable it, but all my other plugin are disabled.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Does 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.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0