• Resolved aleksdab

    (@aleksdab)


    Hi,

    I would like to shorten the URLs for products on my website by removing words like “product” or “product-category” (including multi-level categories) directly via code, rather than using a plugin.

    I am aware of plugins like Permalink Manager for WooCommerce, but I would prefer to avoid adding another plugin to my website.

    Thank you for your support.

    Best regards,
    Ola

Viewing 1 replies (of 1 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Removing /product/, /product-category/, or /shop/ from URLs is generally not advisable due to how WordPress resolves its URLs. These bases are used to differentiate between different types of content (e.g., products, categories) and ensure proper functionality. Removing them can lead to issues with performance, duplicate URLs, or conflicts in URL resolution.

    For more details, you can refer to our guide here:
    Removing /product/, /product-category/, or /shop/ from the URLsIf You Still Want to Change the URL

    1. Replace the Base Text:
      You can replace product-category with another word (e.g., category) via your WordPress dashboard:
      • Go to Settings > Permalinks
      • In the Category base field, add your custom text for the base.
    2. Completely Remove the Base:
      If you want to remove the /product-category/ or /product/ entirely, custom coding is required. Please note that we do not provide support for custom coding. If you need more in-depth support or want to consider professional assistance for customization, I can recommend?WooExperts?and?Codeable.io?as options for getting professional help. Alternatively, you can also ask your development questions in the??WooCommerce Community Slack?as custom code falls outside our usual?scope of support.

    Thank you

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