if (condicion){header("Location: http://www.google.es");exit;}else{header("Location: http://www.forosdelweb.com");exit;}