Complex redirections

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

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

    You can achieve the redirection of all your products with the help of regex redirects.

    Here’s the structure you can add in the redirect for that:

    Source: product/(.*)
    Type: Regex
    Destination: http://www.abcd.com/products/$1

    Please update the destination with your actual website/domain name.

    Hope that helps.

    Thank you.

    Anonymous
    Rank Math free

    Is there a reason why we have used $1 specifically?

    Hello,

    The $1 captures all the equivalent values/characters from the (.*) value in the regex redirect.

    It simply catches all the product names after the slug /product/, so it will be applied to all your products, instead of /winch only.

    You can also refer to our guide here to using regex redirects in Rank Math:
    https://rankmath.com/kb/how-to-use-regex-redirects/#examples

    Hope that helps.

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