Why does IE9 load my site in quirks mode automatically? How can I force it into IE9 standards?

790 Views Asked by At

When I load this page from is regular path or URL everything works just as it should in IE9, but when using the forwarded URL to access it IE9 loads it in quirks mode which removes the entire header from the page leaving only the iframe. If I switch the documents mode to IE9 standards, the header appears but then everything else becomes out of format and messed up. Can anyone help with this?

Normal path (Works perfectly on IE9): http://payrollservers.us/SharedDocs/cbiz/tkg/38330337/index.html

Forwarded URL (Quirks mode in IE9): http://www.cbiztimesolutions2.com

How can I get this page to not load in quirks mode and why is everything our of format when I switch it to ie9 standards manually?

2

There are 2 best solutions below

6
On

Include the edge mode in your HTML:

<!DOCTYPE html> 
<html> 
<head> 
    <title>...</title> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
7
On

You can use either a http header or meta tag, I would suggest meta tag.

http Header

name: X-UA-Compatible  
value: IE=edge

Meta Tag (put it in the HTML Head Section)

<meta http-equiv="x-ua-compatible" content="IE=Edge"/>