• Hello,

    We have a WordPress website. We created some custom pages, when deleting these custom pages it auto-redirected to some other post.

    How to solve this problem?

    What’s the reason deleted post auto redirected why do not get a 404

    Please let us

    Thank You

    • This topic was modified 3 years, 7 months ago by Yui.
    • This topic was modified 3 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Requests and Feedback topic
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Does the page redirected to have a slug that’s similar to the removed page? WP will try to find a similar match if there’s not an exact match. If there’s not even anything similar, then it should 404.

    A 404 response can be forced for specific requests even if there were a match through the “pre_get_posts” action hook by calling the set_404() method of the passed query object.

    If deleted pages have been indexed by search engines, it’s usually better to 301 redirect to a related page than go 404.

Viewing 1 replies (of 1 total)
  • The topic ‘Deleted page auto redirected to other post’ is closed to new replies.