I’m aware that IE conditional comments allow CSS files and JS files to be linked/targeted, however, I’m wondering if the same can be done for a simple HTML file. If anybody has info or the proper method to achieve this I would be thrilled! Many Thanks.
My goal is to link the page to specific versions of IE with the ‘conditional comment’ method in the head section of my main website. If you are aware of a better solution to serve the page…I’m all ears. Cheers!
@NSR What I JUST finished doing was redirecting IE users to a specific html page (except IE9 and IE10). All other browsers that try to go to that page will be redirected to the main site. Is this what you’re trying to do?
That is exactly what I’m trying to do. So If I place that snippet in my head section of my main site i’m good to go? All i have to do is make sure the HTML file for IE in the same directory on the server as my Main page? Thanks!
@NSR – It shouldn’t matter where you put the IE redirect page. But for easy use, put it in the same directory. Make sure you add a redirect back to your main site if the user HAS IE9 or above (or another browser) so that people don’t directly access the page when they aren’t supposed to.
@NSR You would put the snippet I posted above in your main page. That redirects IE users (IE8 and below) to the IE page. It doesn’t matter where your IE page is as long as you link to it correctly.
Now on your IE page you would post the following to redirect all other browsers and IE9+ to back to your main page because they don’t need to see this.
@Paulie_D If our analytics show that we do not have a substantial IE user base for those versions, it really doesn’t matter (especially for a portfolio site). It’s you, the developers, that are being nagged by having to develop for browsers that are not adhering to standards.