Detect index.php not only in root