Solved: Magento 2 Product URLs Double html Suffix Problem

Solved: Magento 2 Product URLs Double html Suffix Problem

Have you recently migrated to Magento 2? Are your product URLs end with .html.html?

Working on customizations and Magento 2 migration, we recently faced an issue. After Magento 1 to Magento 2 migration, the imported product URLs were having double html suffix.

Original URL: example.com/tshirt.html

With double .html suffix problem: example.com/tshirt.html.html

Steps to get rid of Magento 2 Product URLs Double html Suffix Problem:

  1. Take the backup of your current Magento 2 database.
  2. Run the following command in your Magento 2 database:
     
  3. Run the below command to flush the cache
     

That’s it and double html suffix in Magento 2 product page issue is no longer there! Still, stuck somewhere while implementing the solution or having any question regarding it? Do comment your queries and I will be happy to help!

Don’t forget to share the solution to other Magento community members!

 

5
(based on 5 Reviews)

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a Reply