Redirect deleted custom post type

#242383
  • Resolved Julian Gomez
    Rank Math free

    Hello, I’m trying to automatically have all my CPT (called surveys) when deleted redirected to a page /survey-finished.

    In the redirections menu I configured that when the url contains the word “survey” (which the cpt have in their url) redirect to /survey-finished.

    The problem is that is redirects with all my surveys, I just one to redirect the ones that are deleted.

    How could I accomplish this?

    Thanks!

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You could set up to redirect all the 404 errors automatically to the homepage, so all the posts, once deleted will have a 404 error page that will redirect to your homepage.

    redirect

    Let me know if that helps. Looking forward to helping you with this one.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Redirect deleted custom post type’ is closed to new replies.