Forum Moderators: phranque
According to Microsoft:
To enable Compatibility View for your whole Web site or for certain Web site directories, include the following custom HTTP header for all requests to your site or directory.X-UA-Compatible: IE=EmulateIE7
My question is this: Can that bit of code be placed in the .htaccess file or does one have to edit hundreds of pages to implement it? Or is there another solution?
What has me worried is the content that was not loaded properly was straight HTML with no frills. Nothing fancy, just plain old fashioned HTML. Basically, the heart and soul of my site. :(
<FilesMatch "\.(s?html?¦php[45])$">
Header set X-UA-Compatible: "IE=EmulateIE7"
</FilesMatch>
Make the pattern as specific as possible; There's no use sending the header with "non-page"-type content such as images/media or external JavaScript or CSS. On the other hand, it shouldn't hurt, other than to waste bandwidth.
Replace the broken pipe "¦" character with a solid pipe before use; Posting on this forum modifies the pipe characters.
Jim
[added] After experimenting a bit, I see that if you access Live HTTP Headers through Firefox's Tools->Page Info screen, it does not show the colons, whereas if you open Live HTTP Headers in it's own sub-window by clicking on its icon in the navigation toolbar, it does. So I got confused when you said that there was no colon on the X-UA-Compatible header, but did not mention that there was no colon on any other header, either. This server stuff is all details, details, details... ;) [/added]
Jim
This will open LHTTPH in a separate sub-window that records all HTTP transactions involved in loading pages and their included images/CSS/scripts, etc., can be scrolled back and forth, and can be saved to a log file -- among other things. Very handy for debugging cookie, cache-control, redirect, and error response header issues.
Jim