Regular expressions and directory redirect

#173750
  • Resolved NoN Agency
    Rank Math pro

    Hi There,

    I have a completely fine regular expression (tested with the tool you recommend here https://rankmath.com/kb/setting-up-redirections/ – this one: https://regex101.com/), yet RankMath still says it’s an incorrect pattern.

    Message from RankMath

    Here’s the pattern:
    @^reseñas/(.*)@
    also tested with:
    **^reseñas/(.*)**

    What I’m trying to do is redirect the whole /reseñas/123 silo under the new /resenas/123 silo as I want to get rid of the diacritic character.

    If there’s any easier way of doing this, I’d be grateful to find out!

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

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

    You can try this regex redirect I have created to redirect all of the links with /reseñas/ to /resenas/

    
    Regex
    Source URL: /reseñas/$1
    Destination URL: /resenas/$1
    

    Here’s a screencast for your reference:
    https://i.rankmath.com/KDsQKM

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

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for that very informative screencast.

    That is not the expected behavior of the regex redirect, as it is working fine on our end. In this case, we might need to take a closer look at the settings.

    Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Thank you, and we really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I provided more information at the end of the sensitive data form field.

    NoN Agency
    Rank Math pro

    I was wondering if there is any update? I’ll have to provide you a new login credential as the last one most likely already expired.

    Hello,

    Thanks for getting back to us.

    I made some quick changes to your redirection and it should now be working as intended. I changed the source URL to /reseñas/(.*).

    Don’t hesitate to get in touch if you require any further assistance.

    NoN Agency
    Rank Math pro

    OK, it works – I could swear we’ve tried this option along with many others and it seemed as RankMath was coming up with an incorrect syntax for the Source URL Regex before.

    In any case, it’s fine and we’re happy!

    Thanks for your great help!!

    Prabhat
    Rank Math agency

    Hello,

    We are super happy that we could address your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Regular expressions and directory redirect’ is closed to new replies.