0

I am experiencing a strange error with my Wordpress install.

I've got a dozen of pages, %postname% permalink structure, everything works fine.

For one of the published pages, I reverted it to draft mode, edited for a couple of days, then published it again. Now, when I try to access its permalink, I get a 404 error. If I change the slug by 1 symbol, it works. But the initial slug does not. Any idea how to fix it? Thanks!

Can share the website if necessary.

Edit: I did all the "fixes" that I found by Googling: refresh .htaccess, disable all plug-ins to see if it's a plugin issue, disable caching, update permalink structure... Nothing worked.

1
  • Not really an answer, but if you install the Query Monitor plugin it has a section for matched rewrite rules. It might help you debug the difference between a page that's working and one that's not.
    – tmdesigned
    Apr 26, 2019 at 22:35

1 Answer 1

0

OK so I've spent a couple of more hours working on this and was examining my database through phpmyadmin. In the table wp_terms I noticed that I had terms identical to my page's slug. Turns out I had a tag named like this. I deleted the tag, and voila - no more 404 error. Hope this may help somebody.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.