Do it instead of php. Use the user_agent class and redirect to this page.
But more importantly, why don't you allow IE users to access your site? Is this related to CSS or something else?
The code:
$this->load->helper('url'); $this->load->library('user_agent'); if ($this->agent->browser() == 'Internet Explorer' and $this->agent->version() <= 7) redirect('/unsupported-browser');
Edit:
As mentioned; if you want this all over the site, run it in MY_Controller and don't forget to add $this->uri->segment(1) != 'unsupported-browser' as an additional condition to avoid loop redirection.
Robin castlin
source share