PDA

View Full Version : How to remove category id from url in magento website ?



HeavenlyBorn
06-28-2019, 11:36 AM
How to remove category id from url in magento website ?

MarcS
07-16-2019, 11:58 AM
Yes, you can do this by going to :

Admin - System – Configuration – Catalog – Catalog - Search Engine Optimizations – selecting NO in Use Categories Path for Product URLs

You can see from the help of this URL:

https://mage2.pro/t/topic/312

MVMInfotech18
07-16-2019, 12:10 PM
Go to the Store > Configuration > General > Web > Session Validation Settings > Use SID on Storefront and set its value to No

BangkokDinning
07-26-2019, 12:32 PM
As great as Magento is there are a number of failings it can have from an search engine optimisation point of view and one of the biggest bugbears our SEO consultants have had with it is the number of different URLs a product can be accessed on.

Akshay_M
10-14-2022, 01:40 PM
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:

copy the desired url fromSearch engine optimisation
change scope to the store
paste in search engine optimisation
tick to create a URL rewrite
Save