Regex not working correctly ?

#672560
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I’m sorry to hear that you’re experiencing issues with the regex redirect. It seems like there might be an issue with the regex pattern you’re using. The pattern -\d+$ should match the numeric part at the end of the URL and remove it, but it seems like it’s not working as expected.

    It’s possible that the issue might be related to the way the regex pattern is being used in the Rank Math plugin. I recommend checking the regex pattern and ensuring that it’s correctly formatted for use in Rank Math.

    If you’re still facing issues after verifying the regex pattern, please feel free to assign this ticket to our support team using the available button, and we’ll be happy to assist you further.

    Thank you for bringing this to our attention.

    Sources:
    How to Use Regex Redirects in Rank Math » Rank Math
    How to Set Up Redirections » Rank Math
    How to Redirect Posts After Changing URLs » Rank Math

    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 update the source URL of the regex to this pattern to remove the numbers at the end of the URLs.

    Source: ^(.+?)-\d+/?$
    Type: Regex
    Destination: /$1

    Hope that helps.

    Thank you.

    Anonymous
    Rank Math free

    Thanks a lot !

    Issue solved 🤓

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me 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 do 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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Regex not working correctly ?’ is closed to new replies.