Redirect regex not working on rankmath but it does on redirection plugin

#190608
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Please try this regex redirect using Rank Math to achieve that kind of redirection:

    Source URL: /catalogo-diam/(.*)
    Destination URL: /producto/$1

    I hope that helps. Thank you, and looking forward to your update.

    Hi again, not working at all, the one i gave you is working but only on redirection plugin! What i mean is the regex its well written

    Sorry to contact again here is a regex test so you can take a look https://regex101.com/r/NBYa5s/1

    I resolved getting help on a regex101 thanks so much this was the solution
    /catalogo-diam/(?:[^/\n]*/)*?([^/\n]*)-en-([^/\n]*).*
    https://www.alahas.com.do/producto/$1-$2/

    Hello,

    Thank you for the update.

    We are glad it worked for you.

    If you have any other concerns, please don’t hesitate to contact us anytime by creating a new ticket to assist you further with anything else.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Redirect regex not working on rankmath but it does on redirection plugin’ is closed to new replies.