Hello, I’m sorry for the inconvenience you’re facing. Changing the permalink structure can have a significant impact on your website’s traffic and SEO. To change the WordPress permalink structure without losing traffic, you can follow these steps:
-
Navigate to Permalinks in WordPress: Go to WordPress Settings → Permalinks.
-
Select the Permalink Structure: Choose the Custom Structure option and enter the desired permalink structure, in your case, %postname%
.
-
Using Regex for Redirection: After changing the permalink structure, you can use Regex with Rank Math to create redirections for the old URLs to the new ones. This will ensure that your traffic is redirected seamlessly to the new URLs without any loss.
Here’s an example of how you can use Regex with Rank Math for redirection after changing the permalink structure:
Replace `https://rankmath.com/kb/wordpress-permalinks/ with your domain name.

Once you’ve added the settings, click the Add Redirection button for the changes to take effect.
This will automatically redirect visitors from the old permalink structure to the new one, ensuring that you don’t lose traffic during the transition.
If you have any further questions about redirections or need assistance with this process, feel free to reach out to our support team. We’re always here to help.
You can also refer to our detailed knowledgebase articles on redirection settings and solving redirection issues for more information: How to Redirect Posts After Changing URLs.
I hope this helps! If you have any other questions or need further assistance, feel free to ask.
Sources:
WordPress Permalink Structure & Changing Individual URLs » Rank Math
How to Redirect Posts After Changing URLs » Rank Math
Analyzing Your Site’s SEO with Rank Math’s SEO Analysis Tool
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
You can try to use the following regex redirection on your website and see if that works for you:
Source: ^index.php/([0-9]+)/([0-9]+)/([0-9]+)/(.*)$
Match: regex
Destination: /$4
Let us know how it goes. Looking forward to helping you.
Thank you.
Thanks, bro it works you make my day Cheers.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.