Hello,
Thanks for contacting us and sorry for the inconvenience caused.
If you have set the product categories as the primary taxonomy of the products in WP Dashboard > Rank Math > Titles & Meta > Products then the primary category will be used in the URL. You can choose the category you want to use in the URL as the primary. Here is a guide that can help: https://rankmath.com/kb/how-to-choose-a-primary-category/
However, if you have subcategories then the parent category will also be included in the URL. In this case, you will have to use a dedicated permalink manager plugin to only use the subcategory in the URL.
Hope that helps. Let us know if you need any other assistance.
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.