Replace index file