最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

404 error - WP is redirecting instead of going to 404

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论