Set up redirections programmatically

#536188
  • Resolved Anastasia Skantza
    Rank Math free

    Hello,

    I was trying to find if either in free or pro version there is an option to set up redirections through code.

    What I would like to do is before deleting a product to set up a redirection for that url to product’s category.

    Do you have a function to combine with ‘before_delete_post’ in order the redirections to be created automatically?

    Thank you.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Unfortunately, that function could not be achieved through the Rank Math redirections feature in either the Free or PRO version.

    We only have the option to automatically redirect 404 pages to your homepage or specific links through the Fallback Redirection option in Rank Math > General Settings > Redirections:
    https://rankmath.com/kb/general-settings/#fallback-behaviour

    Looking forward to helping you.

    Thank you.

    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 ‘Set up redirections programmatically’ is closed to new replies.