Hi @bangboke,
Thank you for reaching out.
I understand the issue you’re facing with your permalinks. As a first step, could you please share a screenshot of how your permalinks are set? This way, we can have a visual understanding on the issue you’refacing and be able to assist further.
You can use https://snipboard.io/ to share your screenshot.
Looking forward to assisting you further.
Hi @bangboke ,
Step 1: Customize WooCommerce Permalinks
- Go to WordPress Dashboard: Navigate to Settings > Permalinks.
- Scroll to the WooCommerce section: Under the Product permalinks section, you should see a field that allows you to customize the base for your product URLs.
- Choose “Custom Base”: In this section, you’ll see options like:
- Default:
/product/
- Shop base:
/shop/
- Shop base with category:
/shop/%product_cat%/
- Custom base: (This is what you need.)
- Set the Custom Base: Select the “Custom base” option and leave the field empty. If you leave it blank, WooCommerce will stop adding
/product/ before your products’ permalinks.Alternatively, you can set the custom base to /%product_cat%/ to ensure that your product URLs follow this structure directly.
- Save the Changes: Click on Save Changes at the bottom of the page.
Step 2: Flush Permalinks
Sometimes, changes to permalink settings do not take effect immediately. To ensure the new structure is applied correctly:
- Flush Permalinks: After you’ve saved your custom permalink settings, WordPress should automatically flush the rewrite rules. However, if it doesn’t work right away, you can manually flush permalinks by:
- Going to Settings > Permalinks.
- Clicking Save Changes again without making any modifications to force WordPress to regenerate the permalinks.
Thank you.