Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If IE functions

Unfortunately, I haven't found any answer to my question in the web. How to make a user with IE see another html page (not index.html)?

like image 375
Pavel Shimansky Avatar asked Jun 27 '26 06:06

Pavel Shimansky


2 Answers

You could use conditional tags together with meta redirect.

<!--[if IE]>
    <meta http-equiv="refresh" content="0;url=/ie.html">
<![endif]-->
like image 178
Filip Avatar answered Jun 28 '26 19:06

Filip


If you are running apache you could do this server-side through a .htaccess file:

RewriteEngine On 
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^.*MSIE.*
RewriteRule ^index\.html$ ie.html [L]

The above will redirect clients using any flavor of IE to ie.html and all others to index.html

like image 26
Cyclonecode Avatar answered Jun 28 '26 20:06

Cyclonecode