CodeIgniter: Redirect Internet Explorer Visitors


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $this->load->library('user_agent');
  2. if($this->agent->browser() == 'Internet Explorer' AND in_array($this->agent->version(), array('6.0','7.0')))
  3. {
  4. redirect('some_page');
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.