changed detection to web/index.php