|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Microsoft Internet Explorer 8 is designed to be more standards compliant than previous versions. As a result, certain hacks in web sites can cause those sites to display incorrectly in Internet Explorer 8. This can be addressed by forcing browsers to render your site in what is called "compatibility mode". The following instructions detail how to enable compatibility mode site wide, if your site is hosted on an Apache server.
Setting Compatibility Mode for all visitors on Apache Enabling compatibility mode on an Apache server requires the ability to create and edit .htaccess files, and mod_headers must be installed on the server. Most shared and dedicated hosting plans should allow this. Simply add the following line to your .htaccess file. Code:
Header set X-UA-Compatible "IE=EmulateIE7" If you will be testing your site, and want your own browser to work without compatibility mode, you can specify certain IP addresses that will not be shown the header. First, create a list of IP addresses that should not have compatibility mode. Add the following line to the .htaccess file, changing 1.2.3.4 to the appropriate address. Each IP address would require a seperate line. Code:
SetEnvIf Remote_Addr 1.2.3.4 webmaster Code:
Header set X-UA-Compatible "IE=EmulateIE7" env=!webmaster Setting Compatibility Mode on IIS 7 If you have administrative access to your IIS server, you can add new headers by following the instructions here: IIS 7.0: Add a Custom HTTP Response Header The name you need to specify is "X-UA-Compatible" and the value is "IE=EmulateIE7" (without the quotes). Setting Compatibility Mode on other platforms If you can not use the above method for any reason, you can add compatibility mode to each page by adding the following meta tag: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Quote:
1. Can that result in worse performance for some sites, or 2. Is it always a good rule to add that line to your .htaccess file? 3. More precisely, adding that code line has no negative side effects, it can do no harm? Add it to each page? So you can not set it in robots.txt (since that is aimed at robots and not browsers)?
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 03-25-2009 at 11:58 AM. |
|
||||
|
Hi Wige
At the moment I am using: Code:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> I have also read IEBlog : Compatibility View Improvements to come in IE8 which also demonstrates the compability mode that you were referring to (which in honesty wouldn't have been needed had Microsoft not been so arrogant!) |
|
||||
|
"Subscribe to this thread" is no longer working on this thread. So I'm having to post to subscribe to it.
__________________
Happy Thanksgiving to all & God Bless, -Clint (Join Date: 2003) |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Internet Explorer 7 | drummin | Graphics & Design Discussion Forum | 13 | 12-22-2006 10:06 AM |
| Internet Explorer 7.0 | countryjoe | IT Discussion Forum | 4 | 12-13-2006 12:55 PM |
| Internet Explorer 7 | irodgers | IT Discussion Forum | 3 | 09-12-2006 02:56 PM |
| Internet Explorer 7 | richkoi | Graphics & Design Discussion Forum | 18 | 02-23-2005 02:16 PM |
| Internet Explorer Pop-ups | pedstersplanet | Internet Security Discussion Forum | 30 | 07-12-2004 06:52 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |