0

In magento2 click on category, that category url look like this www.example.com/catalog/category/view/s/hook-and-loop-brands/id/71/

how can i remove the category id and category path in url?

9
  • have you followed this way, check link Oct 24, 2018 at 7:03
  • or do you want to remove just id from above URL and not fully SEO URL ? Oct 24, 2018 at 7:04
  • actually the url looking like www.example.com/hook-and-loop-brands/ but in my case url having tha catalog/category/view/s/hook-and-loop-brands/id/71 i think its wrong..how can can i solve this Oct 24, 2018 at 7:08
  • did you check above link ? Oct 24, 2018 at 7:09
  • yes,checked the above link and all settings are same but url have the id Oct 24, 2018 at 7:15

2 Answers 2

0

I found a different solution to this problem.

For me, I found /category/id appearing at the end of some product url's. It turned out this was because I had the same product across multiple stores (which is fine), but the url under 'search engine optimisation' needed to be set within the specific store scope on each product and not just the products default scope.

On a product with this issue:

  • cope the desired url fromSearch engine optimisation
  • change scope to the store
  • paste in search engine optimisation
  • tick to create a URL rewrite
  • Save
-1

You can try setting use category path for product url to no. You will find this option here:

Admin - System – Configuration – Catalog – Catalog - Search Engine Optimisations – selecting No in Use Categories Path for Product URL

After that try flushing cache and reindexing

Hope it helps!!

1
  • Tried this one but again the same issue Oct 24, 2018 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.