Support » Plugins » IE 10 Redirect Loop in NON compatibility view

  • I have recently discovered that Internet Explorer 10 is causing a redirect loop on my WordPress site. I setup a sandbox site with zero configuration changes made to the settings as a test.

    The goal is to have ALL non logged in user requests directed to wp-login.php. I had been using the ‘Members Only’ plugin without any error until this was brought to my attention. The error is not present if IE10 is set to ‘IE 10 Compatibility View.’ Everything works normal in IE 9 and below.

    The log below shows a few iterations into the loop, you can see what is happening.

    207.192.196.130 - - [09/Oct/2013:10:05:14 -0500] "GET /wp-login.php?redirect_to=/wp-login.php?redirect_to=/wp-login.php?redirect_to=/wp-login.php?redirect_to=/wp-login.php?redirect_to=/wp-login.php?redirect_to=/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"

    I’ve tried this code at the top of my theme header.php as an alternative to using a plugin hoping that it would work as an alternative to the Members Only plugin but it fails too.

    if ( ( is_single() || is_front_page() || is_page() || is_archive() )
     && !is_page('login') && !is_user_logged_in()) {
     auth_redirect();
    //wp_redirect( 'http://website.com/wp-login.php', 301 ); exit;
    //wp_redirect( ‘/wp-login.php', 301 ); exit;
    }

  • The topic ‘IE 10 Redirect Loop in NON compatibility view’ is closed to new replies.