applied to index.php