if ( preg_match("/blog/i",$_SERVER['REQUEST_URI']) ) { header('Location: http://www.miblog.com'); exit; }