$hostname=$_SERVER['SERVER_NAME']; if ( $hostname=="localhost" || substr($hostname,0,8)=="192.168.") { header("Location: http://$hostname/webprivada/entradaSSL.html"); } else { header("Location: https://europaschool.org/webprivada/entradaSSL.html"); } exit(); ?>