Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Please head over to your WordPress Dashboard > Settings > Permalinks and click on the save button without changing anything. After that, clear your website caches and see if that improves the situation.
If that doesn’t work, please share the affected URL in this ticket’s sensitive data section so we can take a closer look at the issue.
Looking forward to helping you.
RankMath is very amazing plugin for SEO
Hello,
@Janice Thank you for your kind words.
If you have any other concerns, please don’t hesitate to contact us anytime to assist you further.
Looking forward to helping you.
Thank you.
Hi Jeremy,
thank you for you advice, but it does not work, URL is the same.
I scanned the whole database for “/shop/category-a/product-abc/” string (current, but wrong URL), and found it in wp_rank_math_analytics_objects table with correct product id (object_id column). But removing the line did nothing.
Deactivating Rank Math plugin helps, product has immediately correct URL (/shop/totally-different-category/product-abc/).
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I was not able to replicate the issue on your site. Changing the product category is updating the permalink correctly. Please check the screencast I have added in the sensitive data section.
If there are different steps to replicate the issue, please record and share a screencast using a tool like https://loom.com/ so we can check and assist you further.
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested with Loom screencast. Check the product with post ID 3091. Its URL has category slug it is not in, and does not change no matter how I change its categories. It correct itself instantly when RMSEO deactivated.
Thank you.
Hello,
I tried enabling the primary taxonomy option for your product post type to test it and forcibly tell Rank Math the correct category to include in the URL and it works. Please see the screenshot in the Sensitive data section.
I turned it off again and the old URL is no longer appearing. We are not sure if this is a caching issue.
To make sure Rank Math is choosing the correct category to add to the URL, you may consider turning on the primary taxonomy for your product post as “Categories” in Rank Math > Titles & Meta > Products > Primary Taxonomy.
Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.
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.