PDA

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



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

Rscomp
06-28-2019, 08:36 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.
If product a is in category 1 and two then by default magento will create links to it on the following URLs.
www.mystore.com/category-1/product-a.html
www.mystore.com/category-2/product-a.html
www.mystore.com/product-a.html
This can cause duplicate content issues from a search engine point of view. One solution is ensuring that you have canonical URLs in place so the search engine knows which is the primary URL. Better still is to ensure the same URL is produced for the product each and every time by removing the category part.

imriakapoor
06-30-2019, 09:58 PM
The definitive answer shared by @Rscomp will help you out

neelseowork
06-30-2019, 10:16 PM
I think you should check where you are posting!
this is an SEO category and you shouldn't post such threads here which is not relevant!