update file position and remove index.html.