I'm unable to get mht files to display correctly through xampp. I see text such as the following...
MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_01CDCAFC.67E0D690" This document is a Single File Web Page, also known as a Web Archive file. If you are seeing this message, your browser or editor doesn't support Web Archive files. Please download a browser that supports Web Archive, such as Windows® Internet Explorer®. ------=_NextPart_01CDCAFC.67E0D690 Content-Location: file:///C:/4CE9C652/Y12-SoftwareDev-Outline-2012.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="us-ascii"
I've been wrestling with this problem for a few days now and I suspect the problem is that I am not applying the mime type settings correctly.
To begin with I'm pretty sure that this should work because if I change the file extensions of my files from .mht to .eml they work just fine. Also if I open a mht file in Internet Explorer without going through the web server it looks fine as well. So basically I should be able to get xampp to treat the .mht files the same as the .eml files... yes?
Here is what I've tried...
- Code: Select all
multipart/related mht
- Code: Select all
message/rfc822 mht
- Code: Select all
application/octet-stream mht
- Code: Select all
AddType multipart/related .mht
- added mht next to the entry for eml in mime.types so it reads
- Code: Select all
message/rfc822 eml mht mime
Each time I made a change I restarted apache and refreshed the page or restarted the browser, but none of these had any effect on the way the mht file was displayed. Can anybody help?
Thanks in advance,
Nick
Here are my details as requested in the "How to post" sticky...
Xampp version: 1.8.1
Xampp control panel version: 3.1.0
Operating system: Windows 7 (to be deployed in Windows Server 2008)