Hello, I apologize for the issue you are facing with setting up the redirection using regex in Rank Math. To redirect your URLs from https://destinationurl.com/https://destinationurl.com/actual-url/ to
https://destinationurl.com/https://destinationurl.com/actual-url/ you can follow these steps:
- Go to your Rank Math plugin settings.
- Navigate to the Redirections section.
- Click on the Add New Redirection button.
- In the Source URL field, add the following regex code based on your old URL structure:
d{4}/d{2}/(.*)
- In the Destination URL field, add:
https://destinationurl.com/https://destinationurl.com/actual-url/
- Make sure to select the Regex option in the Match Type dropdown menu.
Here is an example of how it should look:
After adding these settings, click on the Add Redirection button for the changes to take effect. This should help you set up the redirection correctly without causing any ERR_TOO_MANY_REDIRECTS errors.
If you encounter any further issues or need additional assistance, feel free to reach out to our support team by replying to this ticket. We are here to help you with any redirection problems you may face. Thank you for reaching out!
Sources:
How to Redirect Posts After Changing URLs » Rank Math
Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
WordPress Permalink Structure & Changing Individual URLs » Rank Math
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Please create a Regex redirection by following the rules below:
Source: ([0-9]{4})/([0-9]{2})/(.*)
Type: Regex
Destination: http://www.whatihavelearnedteaching.com/$3
This should help you redirect the old permalink structure to the new one.
Let us know how that goes. Looking forward to helping you.
Hi, I flush the cloudflare cache and now it works, thank you very much!
Hello,
We are glad to know that this issue has been resolved. Thank you for letting us know.
This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.