Answer the question
In order to leave comments, you need to log in
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
The problem was in the Yoast SEO plugin. He cached. After clearing the cache. A day later everything was ok.
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 questionAsk a Question
731 491 924 answers to any question