Hello,
To create product links in the format of primary-category-name/product-name
, you can achieve this by using Rank Math’s WooCommerce Permalink Features. Here’s how you can set it up:
-
Navigate to Rank Math SEO → General Settings → WooCommerce in your WordPress dashboard.
-
Enable the Remove base option. This will allow you to remove unnecessary prefixes like shop and product from your URLs.
-
Additionally, you can utilize the Strip Category Base option from Rank Math SEO → General Settings → Links to discard category names from the category archive URLs, resulting in cleaner URLs.
By following these steps, you can customize your product links to include the primary category name in the URL structure. If you encounter any issues or need further assistance, feel free to reach out.
Thank you for raising this concern.
Sources:
WordPress Permalink Structure & Changing Individual URLs » Rank Math
Analyzing Your Site’s SEO with Rank Math’s SEO Analysis Tool
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Yes, you can use the primary category on your product page URLs. In order to achieve this, please make sure you’ve added the /%product_cat%/
in your Product permalink structure from WP Dashboard > Settings > Permalinks.
Once done, please select the primary category by following this guideline: https://rankmath.com/kb/how-to-choose-a-primary-category/
Hope that helps and please don’t hesitate to let us know if you have any other questions.
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.