Redirect Complex Pages

#161386
  • Resolved oskarkrassow
    Rank Math free

    Hi,

    I’ve got a lot of old complex URLs that I would like to redirect to the start page.

    Example URL’s:
    /product.html?product_id=1141
    /product.html?product_id=1130

    I’ve read in your FAQ that I should select Regex but I’m unsure about what code I should write in the source field?

Viewing 1 replies (of 1 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thanks for contacting us!

    Regex or Regular Expressions are powerful but complex topics. Even a small mistake in the expression can lead to undesirable results. If you wish to use Regular Expressions for redirections, then I suggest you consult a developer to make the expressions according to your needs.

    However, if you find a pattern in the URLs that you need to redirect, then you may also consider using the Contains option in the Source URL field. https://i.rankmath.com/VrbUEM

    For more details, please refer to our tutorial guide: https://rankmath.com/kb/setting-up-redirections/#contains

    Hope this helps.

    Thanks!

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