Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
If you changed your permalink structure from link.com/category/postname to link.com/postname then you’ll have to create the redirection from /category/postname to /postname. For this, you can add a regex redirection on your website like the following one:
Source: ^category/(.*)
Redirection Type: regex
Destination URL: https://www.yourdomain.com/$1
Please replace the category
and yourdomain
with the actual category name and your actual domain name.
However, please note that if you’ve multiple categories then you’ll have to create separate redirection for each of your categories.
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
Hey,
But i have many many categories. Is there’s a universal way to define category? So URL is post directed to category it is from?
Hello,
Unfortunately, Rank Math’s regex redirection feature could not analyze if the word is a category or from your other URL slug.
In this case, you may need to create a regex for each of your categories.
Looking forward to helping you.
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.