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