Hello,
We apologize for the issue you are facing with the regex redirection in Rank Math. It seems that the regex you are using might not be matching the URL as expected.
Here are a few things to check:
-
Ensure the Regex is Correct: The regex pattern you provided, ^/app/back-office/(.*)
, should match URLs that start with /app/back-office/
. However, since your URL starts with `http://en.wikipedia.org/wiki/Regular_expression you might need to adjust your regex to account for the full path. You can try using:
^http://en.wikipedia.org/wiki/Regular_expression)
or simply:
^/app/back-office/(.*)
if Rank Math is set to handle the base URL automatically.
-
Check for Trailing Slashes: Ensure that there are no trailing slashes in your source URL unless they are intended. Sometimes, a mismatch in trailing slashes can cause the redirect to fail.
-
Activate the Redirect: Make sure that the redirect is activated in the Rank Math settings after importing.
-
Debugging: Use the redirection debugger in Rank Math to diagnose potential issues with your regex. This tool can help identify if your regex is matching correctly or if there are any conflicts.
If you continue to experience issues, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern, and we hope to resolve it soon!
Hello,
Please update the regex to this structure instead:
Source: app/back-office/(.*)
Type: Regex
Destination: https://admin.livementor.com/app/back-office/students
Here’s a link for more information:
https://rankmath.com/kb/how-to-use-regex-redirects/
Looking forward to helping you.