convert index.html to a file (not a link)