Redirect products using Regex

#425649
  • Resolved Darren Nicholls
    Rank Math free

    Hi there,

    I’m trying to setup a Regex redirect so that all products, for example I’ve tried /product/.* and /product/(.*) get redirected to a specific page but I can’t seem to get it to work.

    Could you advise?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    Please make sure that you are selecting the Regex option in the redirection and use the following settings:

    
    Type: Regex
    Source URL: product/(.*)
    Destination URL: [Set the page you mentioned in the sensitive data section]
    

    ​​​​​​​Here’s an example:
    Regex

    Don’t hesitate to get in touch if you have any other questions.

    Hi there,

    That works just fine.

    Thank you very much for your help. Really appreciated.

    Thanks,
    Darren

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Redirect products using Regex’ is closed to new replies.