Update index.php

+ footer moved to single file
+ added php rule