admin管理员组文章数量:1326693
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.
本文标签: 404 errorWP is redirecting instead of going to 404
版权声明:本文标题:404 error - WP is redirecting instead of going to 404 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742199253a2431651.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论