Magento – Magento2: Remove Category path from product URL is not working

magento2productproduct-urlsurl-rewrite

I have a Magento2 store. I don't want to add the category path into products URLs for that I set “Use Categories Path for Product URLs” as "NO" in magento2 Admin, but It still add the category path to the product URL.

What I already tried.

  1. set “Use Categories Path for Product URLs” as "NO"
  2. Did Reindex
  3. Next I truncate tables url_rewrite and catalog_url_rewrite_product_category
  4. Did reindex
  5. Regenerate products URL

But No results.

Best Answer

You must follow in your admin, Store -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> Use Categories Path for Product URLs, you must change to No, and you have to make sure that in the Website and Store View is No.

After that, you must reindex and refresh the cache.

Related Topic