You can use tools such as HTTrack****or SiteSuckerto create a static copy of your WordPress website.

  1. Download the WP website from an existing domain using one of the above-mentioned products.
  2. Find and replace the existing domain with your new domain in the file using any text editor.
  3. Upload it to your new domain.

You can either implement the PHP Paste method of JavaScript Paste method.