How do you use Dreamweaver to manage an existing site? Whether you've created an entire site with another site-management tool such as FrontPage or simply created some HTML files in another program, it's easy to "import" an existing site into Dreamweaver. Dreamweaver 4 also reads site definition files from earlier versions of Dreamweaver.
You don't literally import your existing site files into Dreamweaver. Instead, you tell Dreamweaver about your existing site by creating a site definition . The next section ensures that you have your web site prepared for use within Dreamweaver so you can benefit from the later advice on checking and fixing broken links. See the Macromedia TechNote 14031 "How to convert an existing site into a Dreamweaver site" for additional details, including how to convert from FrontPage. The TechNote can be found at http://www.macromedia.com/support/dreamweaver/ts/documents/existing_site.htm.
Refer to Section 7.1 in Chapter 7, especially when using HTML files from another program.
6.6.1 Importing an Existing Site
If you already have a local copy of your web site on your hard drive, you can create a site definition for it, as described in Section 6.2 earlier in this chapter. (If you modify a file without having defined the site, relative links will be changed to absolute file:/// links.) If you don't have a copy of your site on your local drive already, you can use Dreamweaver to download an entire site from a remote server. To download a site with Dreamweaver, you must have authorized access to the FTP site or network drive on which the site is stored; Dreamweaver will not download someone else's site via HTTP (although other utilities will). If you already have your local and remote sites set up in Dreamweaver but want to make sure they're synchronized before continuing, see Section 6.8.4 later in this chapter.
To download a remote site using Dreamweaver:
Downloading a large site can take a long time (several hours), even over a fast connection. Dreamweaver shows the size of each file as it downloads, plus an overall progress bar. The progress bar shows the percentage of the total number of files downloaded; it doesn't consider differences in file sizes. During an FTP download, you can't use Dreamweaver for anything else (although you can use other programs during this time). To interrupt the download, click the Stop Current Tasks icon in the Synchronize Preview dialog box.
As files are downloaded, their Status changes to Updated in the Synchronize Preview dialog box. If a file can't be downloaded from the remote server, Dreamweaver displays an error. You must click OK in response to the error to download the remaining files. After the transfer completes (or is aborted), save the Log file for further inspection. (The Log file is simply a text file and can be opened in any text reader.) The problematic file's status will be shown as Not Updated and be listed in the Log file under, "Files Not Updated Due To User Interaction."
Dreamweaver should preserve the remote server's file dates in the Local Files and Remote Files panes and also in the Windows File Explorer or Macintosh Finder. In practice, Dreamweaver sometimes assign today's date to local files during synchronization; such files may be reuploaded unnecessarily during the next synchronize operation. Use Site Get to download selected files from the server; it doesn't seem to suffer from the same file date problem.
Dreamweaver doesn't compare file sizes to determine which files need to be transferred, only file dates. If a file is corrupted, use the Site Get command to download a file from the remote server manually, or use Site Put to manually upload a file to the server.