Magento – Magento 2 : All Category Pages Are Only 404

categoryhttp-error-404magento2product

On first try of category pages I am only getting 404 errors.

I have Magento 2.1.5.

I imported about 20000 products in my single store, and the products are available in search.

But now I tried category tree from Codazon Megamenu. All links go to 404. This an example:

I tried several things:

  • magento indexer:reindex
  • magento setup:di:compile
  • cleared var/cache, var/generation, var/pagecache, var/di

Maybe its a problem that I have more than one root category?

Now I don't know what I can do to make it work. Google was my friend but I only found the methods described above.

What can I do?

Best Answer

Delete all the Products and Category URLs from Database table "url_rewrite" and then trying to save the each category.

Also check for the URL suffix from configuration.

Store > Configuration > Catalog > Catalog > Search Engine Optimization

Related Topic