Magento "catalog/product/view" url returns 404

Kostas Papakonstantinou picture Kostas Papakonstantinou · Apr 18, 2011 · Viewed 13.8k times · Source

I'm supporting a magento web site. The problem is that product view urls e.g. [link] http://localhost/magento/catalog/product/view/id/23 always return 404.

The category view url e.g. [link] http://localhost/magento/catalog/category/view/id/4 is working fine.

Should I investigate something in code? or in database?

Thanks

Answer

Mukesh Chapagain picture Mukesh Chapagain · Apr 18, 2011

1) Try re-indexing data:-

  • Login to admin panel
  • Go to System -> Index Management
  • Select All
  • Reindex

2) Edit the product and see if the following settings are done:-

  • General -> Status = Enabled
  • General -> Visibility = "Catalog, Search" or "Catalog"
  • Inventory -> Stock Availability = In Stock
  • Websites -> "Main Website" is checked

3) Refresh the Cache (System -> Cache Management)