check if base url ends with /app/index.php