Hello,
I apologize for the issue you are facing with the redirection after changing your URL structure to /blog/%postname%/
.
To redirect from the old URL structure to the new one successfully, you can use the following Regex in the Source URLs field:
/(.*)
And in the Destination URL field, you should add:
/blog/$1
Make sure to select the Regex option in the Match Type dropdown menu. This configuration should help you redirect from the old structure to the new one without causing multiple /blog/blog/
in the URL.
If you encounter any further issues or need additional assistance, please feel free to reach out. Thank you for bringing this concern to our attention.
Best regards.
Sources:
Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
How to Redirect Posts After Changing URLs » Rank Math
How to Use Regex Redirects in Rank Math » Rank Math
Seems not working.
redirecting: /blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/postname
also getting error of too many redirects
my blog page is also being redirected fro website.com/blog/ to website.com/blog/blo/blog/blog/blog….continue
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Unfortunately, it is not possible to achieve this redirection by using regex. You can include redirections individually on your website for all of your URLs or you can use any external plugin to achieve this redirection.
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Â
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.