<?php if (preg_match('/^en/i', @$_SERVER['HTTP_ACCEPT_LANGUAGE'])) { header('Location: http...'); } else { header('Location: http...'); } ?>