In my store I sell hats. Main hat is Cap. When I use category bar I pick Hats-->Cap. Browser goes to hats/cap.html And there is descripcion and other stuff.

But on my homepage I also have all hats (products). When I click on Cap, browser goes to cap.html and there is 404 error.

How can I rewrite product url? When I click on product on my homepage I want to get hats/cap.html (because there is the stuff from category)

  • Can you please be a bit more specific about your question.
    – Icon
    Commented Jul 16, 2017 at 4:21
  • I mean how to change product's url.
    – Chris
    Commented Jul 16, 2017 at 8:44
  • When I click on product it goes to 404.. I don't know how to create product's page like here
    – Chris
    Commented Jul 16, 2017 at 8:48
  • Your Magento version ? and how you display the products in the home page ?
    – PЯINCƎ
    Commented Jul 17, 2017 at 12:23

2 Answers 2


You can use url rewrite from

Catalog > URL Rewrite Management

P.S. wanted to add a comment only, not enough points :( (i'm too lazy )


If you are using Magento 1 then, after add product you need to reindex.

Make sure below thing status website stock status

Your Answer

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

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