WordPress not remembering old slugs for pages
WordPress keeps track of post slug change with wp_check_for_changed_slugs() function. The old slugs are saved in wp_postmeta table with _wp_old_slug meta_key and later redirects to current URL with wp_old_slug_redirect() function. That’s why even after changing a post’s slug, you get redirected to the correct post. However, WordPress doesn’t do this by default with pages (or … Read more