Regex for redirecting event custom child posts /event/(.*) not working

#689646
  • Resolved Anonymous
    Rank Math free

    Hey!

    We’ve tried the AI that helped us find /event/(.*) to be the regex we need to redirect all /event/ pages to the home page.

    We had Tribe events before, and we are not going to have them on the new website.
    So we need some regex to finish the job.

Viewing 1 replies (of 1 total)
  • Hello,

    I’m sorry to hear that you’re experiencing issues with the redirection using the regex pattern /event/(.*). It seems like the redirection is not working as expected.

    To redirect all /event/ pages to the home page, you can use the following regex pattern in the Source URLs field:

    ^event/(.*)

    And in the Destination URL field, you should add the URL of your home page. This would look something like this:

    https://rankmath.com/wp-content/uploads/2022/09/add-regex-2.jpg

    Once you’ve added the settings, click the “Add Redirection” button for the changes to take effect.

    If you’re still facing issues with the redirection, please ensure that the regex pattern is correctly set up in the Rank Math plugin. If you need further assistance, feel free to reach out to our support team by assigning this ticket to them using the available button.

    Creating regex redirect for change in permalink structure

    I hope this helps! If you have any other questions or need further assistance, please let us know.

    Sources:
    How to Redirect Posts After Changing URLs » Rank Math
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
    Redirect all AMP pages to non-AMP pages » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    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 ‘Regex for redirecting event custom child posts /event/(.*) not working’ is closed to new replies.