WordPress.org

Forums

PHP Browser Detection
[resolved] Not detecting different versions of IE (2 posts)

  1. cbournak
    Member
    Posted 1 year ago #

    I've tried using

    <?php if(is_ie() && get_browser_version() <= 8) {
       wp_redirect('http://myurl.com/', 301);
       exit;
    } ?>

    but it still treats IE 9, 10 or 11 the same way.

    https://wordpress.org/plugins/php-browser-detection/

  2. cbournak
    Member
    Posted 1 year ago #

    Sorry, I was using BrowserStack and didn't realize it was reusing the wrong URL. It's working fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Browser Detection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags