Hello,
I’m sorry to hear that you are facing issues with the redirection using regular expressions. It seems like there might be an issue with the regex pattern you are using. Let’s try to troubleshoot this together.
Based on the provided information, it looks like you are trying to redirect from chair-ch24-wishbone.html to `https://destinationurl.com/https://destinationurl.com/actual-url/. Here is a suggestion for the regex pattern you can use:
Source URL:
^/(.*).html$
Destination URL:
https://destinationurl.com/https://destinationurl.com/actual-url/
Make sure to select the Regex option in the Match Type dropdown menu when adding this redirection in Rank Math.
If the issue persists, please double-check the regex pattern and ensure that it matches the URLs correctly. If you need further assistance, feel free to reach out to our support team.
Thank you for your understanding and patience. Let me know if you need any more help.
Sources:
How to Use Regex Redirects in Rank Math » Rank Math
Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
How to Set Up Redirections » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that this issue might have caused.
Please try using the following regex rule to redirect the old permalink structure to the new one:
Source: ([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)
Match: Regex
Destination: https://dev.domesticoshop.com/$4
Let us know how that goes. Looking forward to helping you.
Hello,
You can use the following regex redirection on your website and see if that works for you:
Source: ^(.*).html
Match: regex
Destination: /$1
Let us know how it goes. Looking forward to helping you.
Thank you.
Yes this is work fine!! thanks.
you can help me validate this other case
i use this regex ^/([^/]+)-[^/]+\.html\?___store=english&___from_store=default$
https://dev.domesticoshop.com/silla-ch24-wishbone.html?___store=default&___from_store=english. to https://dev.domesticoshop.com/en/chair-ch24-wishbone
Hello,
Thank you for your patience.
Please note that the kind of redirect for queried/parameter URLs is available only in the Rank Math PRO version.
Those URLs have the question mark (?) at the beginning as we have explained here:
https://rankmath.com/kb/setting-up-redirections/#parameterized-url
Looking forward to helping 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.