1

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.

1 Answer 1

1

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.

10
  • I have already done this. But nothing changed. Commented Mar 26, 2018 at 11:31
  • You have to make sure that on the Website and Store View is No Commented Mar 26, 2018 at 11:33
  • I tested and it works. Commented Mar 26, 2018 at 11:35
  • Yes, In default it is NO and in website it is set as " Use Default" which is NO and In store view it is set as "Use Website" which is also set as NO. Commented Mar 26, 2018 at 11:36
  • What should I do except these steps? is there anything to check? Commented Mar 26, 2018 at 11:37

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.