Product Category to Tag redirection

#14887
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.

    When redirecting URLs with special characters such as the hyphen, it is recommended to use the encoded entity “%2D” in this case. Please take a look at this article for more info on this.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hi Michael, thank you very much for your help. I tried to add %2D instead of dash.
    now I have:
    (Regex)

    Source URL: [product%2Dcategory/color/blue/(.*)]
    Destination URL: product-tag/blue/$1

    but redirection doesn’t work and all products, categories, and tags give ERROR 502 with too many redirects.

    Can you please help me, what am I doing wrong?

    Thank you!

    • This reply was modified 4 years, 7 months ago by Fantucci.
    • This reply was modified 4 years, 7 months ago by Fantucci.
    • This reply was modified 4 years, 7 months ago by Fantucci.

    Hello,

    Thank you for contacting Rank Math today.

    The following regex works on my end, please try it:

    In the source field add this code: ^product-category/(.*)
    and on the destination field, add the following : product-tag/$1

    Let me know how this goes.

    Looking forward to helping you. Thank you.

    ​​​​​​

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

You must be logged in to reply to this ticket.