wordpress - Redirect only the homepage for IE users using .htaccess -
i in process of creating wordpress site , have issue internet explorer. homepage gets jacked because of image slider. fix issue have created alternate homepage doesn't have image slider in it. trying figure out how redirect current homepage (http://whencancercomesback.com/wordpress) alternate homepage (http://whencancercomesback.com/wordpress/index.php/alt-home/) ie users (6-10). .htaccess keep having adjust functions php file. below current .htaccess code.
thanks!
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^contactform - [l,nc] rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress
instead of redirect better target these browsers ("mainly ie 8 , 9") using conditional comment , serve additional snippet of css hides element in these browsers.
in head
of homepage, after main css file:
<!--[if lte ie 9]> <style> #image-slider {display: none} </style> <![endif]-->
this targets ie9 , earlier. other browsers ignore (as it's seen ordinary html comment in other browsers).
conditional comments (such above) can used target ie9 , below, since removed ie10.
Comments
Post a Comment