How to get a perfect local copy of a web page?
Try downloading the website using HTTrack. The options allow you to configure how the locally downloaded files will be linked, and what exactly is downloaded. Windows, Linux, and Mac builds are available.
You can also use Wget:
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://www.yourdomain.com
When you are done you still need to rewrite all the links so they don't point at .../index.html. This solves Dynamic to Static HTML Convertor.