modify headers and add index.php