I recently had to do this and after a lot of frustration with wget, httrack and some other commercial ones too, I ended up settling on the results of this free product, WebCopy.
Background: We couldn't keep the existing platform running, so had to transition to static html files.
I used the WebCopy scan log to create the apache rewrite rules to preserve the existing link structure.
Where I say WebCopy was better, it was this simple log, but also the file structure it was producing was much cleaner with less junk pages and duplicates. (the site was an absolute inconsistent mess to begin with)
I was surprised to not find any product that could create a perfect static clone of the original, as far as maintaining the incoming link structure.
I know there would be a tonne of edge cases and obviously it would need to be targeted to a particular platform, but I think we came pretty close with this simple technique.
https://www.cyotek.com/cyotek-webcopy
Background: We couldn't keep the existing platform running, so had to transition to static html files.
I used the WebCopy scan log to create the apache rewrite rules to preserve the existing link structure.
Where I say WebCopy was better, it was this simple log, but also the file structure it was producing was much cleaner with less junk pages and duplicates. (the site was an absolute inconsistent mess to begin with)