There are several reasons that a post or a page will redirect to a 404 page. Here are some steps to help resolve this issue:
- Is the URL of the post/page correct? Did you recently change the URL?
If not, update the URL or update the link pointing to the post/page so it is correct. - Is your post/page published?
If so, is it a private page? If a post/page is published but not viewable to the general public, it may be marked as private. Private posts/pages are only available to logged-in users with the correct viewing permissions. If your post/page is not published (such as draft or review status), the post/page is not viewable by the general public. It will need to be published first. - Is the post/page set up as a redirect?
Redirected posts/pages can sometimes look like it has the correct URL but are redirecting to another URL. Check your post/page and ensure the redirect URL is correct. If not, update it. - Does the content still exist?
Sometimes posts/pages get deleted (put in the trash). Check your trash and restore the post/page if needed. Otherwise, you may need to recreate the content.
Quick Tip
Visit Settings > Permalinks and resave your permalink structure (you don’t need to change the selection). This will force WordPress to flush the rewrite rules and it may fix the issue with URLs redirecting to a 404 page.