Remove prefix from category URL.default: /product-category/accessories/action-figures/ - changed: /accessories/action-figures/
- Click on Rank Math SEO in the admin site bar.
- Click on General Settings.
- Click on WooCommerce.
- Locate the Remove Category Base option and change it.