Error calling root index.php

Added condition for index.php to prevent 404 error