{"id":747,"date":"2020-01-03T10:53:17","date_gmt":"2020-01-03T10:53:17","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2020\/01\/03\/solved-magento-2-product-urls-double-html-suffix-problem\/"},"modified":"2025-04-22T17:44:22","modified_gmt":"2025-04-22T12:14:22","slug":"solved-magento-2-product-urls-double-html-suffix-problem","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/solved-magento-2-product-urls-double-html-suffix-problem\/","title":{"rendered":"Solved: Magento 2 Product URLs Double html Suffix Problem"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Have you recently migrated to Magento 2? Are your product URLs end with .html.html?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Working on customizations and Magento 2 migration, we recently faced an issue. After <a href=\"https:\/\/meetanshi.com\/magento-2-migration-service.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 1 to Magento 2 migration<\/a>, the imported product URLs were having double html suffix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Original URL:<\/strong> example.com\/tshirt.html<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>With double .html suffix problem:<\/strong> example.com\/tshirt.html.html<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to get rid of Magento 2 Product URLs Double html Suffix Problem:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Take the backup of your current Magento 2 database.<\/li>\n\n\n\n<li>Run the following command in your Magento 2 database:<br><code>UPDATE url_rewrite SET request_path = REPLACE(request_path, '.html.html', '.html') WHERE url_rewrite.request_path like '%html.html';<\/code><\/li>\n\n\n\n<li>Run the below command to flush the cache<br><code>bin\/magento cache:flush<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;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! You can <a href=\"https:\/\/meetanshi.com\/blog\/get-all-product-urls-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">get all products URL in Magento 2<\/a> and check the results to see if the problem persists!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t forget to share the solution to other Magento community members!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-747","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=747"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/747\/revisions"}],"predecessor-version":[{"id":12481,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/747\/revisions\/12481"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}