• Resolved bangboke

    (@bangboke)


    My product custom link permalink set /%product_cat%/, but it will automatically add /product/ in front of it, what should I do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    1. Go to WordPress Dashboard: Navigate to Settings > Permalinks.
    2. 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.
    3. 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.)
    4. 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.
    5. 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:

    1. 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.