Search code examples
htmlserverwebservermhtml

How do I host an mhtml file on a webserver?


I want to just be able to get people to go a link to an mhtml file hosted on a server and be able to see the fully formatted webpage that you'll see when you save the file and open it in Google Chrome (Apparently IE works as well, Firefox and Microsoft Edge do not work). How do I go about doing that?


Solution

  • Might as well post this as an answer for whomever else gets this problem.

    Upon renaming the mhtml file to an mht file, and Extractmht can be used to convert the file to an html file, which can then be hosted.

    [2022 Edit]: Alternatively, open the mhtml file in Chrome/Firefox and use an extension like Singlefile to download it as a proper html page.