admin管理员组

文章数量:1327134

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 badges
Add a comment  | 

1 Answer 1

Reset to default 2

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.

本文标签: 404 errorWP is redirecting instead of going to 404