Bogus URL completion (“redirect_canonical”) in WP 4.7
-
Today I experienced something unnerving which I *hope* I’ve fixed.
I’m running WP 4.7 and a TwentyTen child theme with a custom post type called “people” and a couple of relevant plugins (Advanced Custom Fields, Custom Post Type UI). Everything is freshly updated to the latest release.
Today when I tried to go to a “people” URL like:
https://example.com/people/joe-blow
…WP instead showed me a media page associated with that person (an auto-generated page for the person’s photo in Media):
https://example.com/people/joe-blow/joe-blow
Through trial and error I fixed this by changing the permalink to an alternate spelling, loading it at that new URL, and then changing it back.
That is, I did this:
https://example.com/people/joe-blow
renamed to ->
https://example.com/people/joseph-blow
renamed to ->
https://example.com/people/joe-blowI should add that a lot of my custom post type pages were throwing “404 Not Found” errors shortly before I discovered this. I fixed that problem (again through trial and error) by deactivating and re-activating all the relevant plugins.
Whew. Now everything *appears* to be working correctly. But how can I be sure? Is this a known bug? Is there a recognized way to give the “redirect_canonical” URL completion a kick in the head and get it to rebuild its index?
(I’m so tempted to just shut it off and have an intelligent 404 page instead, but that’s a separate topic…)
- The topic ‘Bogus URL completion (“redirect_canonical”) in WP 4.7’ is closed to new replies.