index.php fixed for public access