genxgeek
genxgeek

Reputation: 13357

Website not styling correctly in IE9 per dns alias (website.co.com)?

I have an mvc3 website that is not styling correctly in IE9 when I hit it through an alias that I setup internal to my company portal, http://webapp.co.com. If I hit the IP directly http://xx.xx.xxx.xx it styles correctly in IE9. Firefox and Chrome style correctly either way.

What's going on here?

Upvotes: 1

Views: 188

Answers (1)

BoltClock
BoltClock

Reputation: 724162

IE switches to Compatibility View depending on the security settings and the environment. In your case, accessing your web app through your intranet address causes IE to fall back to that mode.

Simply add the following meta tag to your page head and IE9 will stop rendering your page in Compatibility View:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Upvotes: 2

Related Questions