V
V
Vladik Bubin2021-07-21 17:50:05
WordPress
Vladik Bubin, 2021-07-21 17:50:05

How to remove the redirect and fix the 404 error?

Created a page named my-page. Then I created a post called my-page-is-best. After the link of the page, my-page became my-page-is-best/my-page/ and when you go, it gives a 404 error. How to fix this? I looked at the redicts in plugins. I looked for such a link in the database and did not find it. I installed the Disable URL Autocorrect Guessing plugin - it did not help. Added to function –
remove_filter('template_redirect', 'redirect_canonical'); - didn't help either. What could it be? And how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladik Bubin, 2021-08-24
@ikoit

The problem was in the Yoast SEO plugin. He cached. After clearing the cache. A day later everything was ok.

A
Artem Zolin, 2021-07-21
@artzolin

The good old WP debug will help you - disable all plugins and put the default twenty theme. Check that everything is working properly and start turning everything on in turn, this way you will find the culprit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question