Regex not working?

#850111
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with your regex redirection. It can be tricky to set up regex correctly, and even a small mistake can cause it to not work as expected.

    Here are a few things to check:

    1. Regex Pattern: Ensure that your regex pattern is correctly written. You can test your regex using an online tool like regex101 to see if it matches the intended URLs.
    2. Redirection Setup: Make sure you have selected the Regex option in the redirection settings when adding your redirect. This is crucial for the regex to function properly.
    3. Debugging: If you have made changes, use the redirection debugger in Rank Math to diagnose potential issues with your redirects.
    4. Case Sensitivity: Check if the case sensitivity option is affecting your redirects. If your URLs might have uppercase letters, consider enabling the ignore case toggle.

    If you continue to experience issues, please reply to this ticket with more details about your regex pattern and the specific setup you have used. A human agent from the Rank Math Support team will then assist you further.

    Thank you for raising this concern!

    Sources:
    How to Use Regex Redirects in Rank Math » Rank Math
    How to Set Up Redirections » Rank Math

    Hello,

    Thank you for contacting us and bringing your concern to our attention.

    Please note that Rank Math Redirection doesn’t support a forward slash at the beginning of the source URL so you’ll have to add the redirection like the following one:

    Source: nieuws-actueel/(.*)
    Match: regex
    Destination: /$1
    

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    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 2 replies - 1 through 2 (of 2 total)

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