Although you can work in Dreamweaver without creating a local site root folder, it is a good idea to define a Dreamweaver local site folder for each new website you create.
Creating a local site folder enables Dreamweaver to know where your site files are to create all the internal links correctly, and to update them when you move files to a different location within your site.
For more information on why it is beneficial to create local sites, see Benefits of a Dreamweaver site.
To set up a local version of your site, you must specify the local folder where you plan to store all of your site files.
The local folder can be on your local computer or on a network server. You can use the Site > New Site or Site > Manage Sites dialog boxes in Dreamweaver to set up multiple sites and manage them.
Identify or create the folder on your computer where you want to store the local version of your site files. The folder can be anywhere on your computer. You then specify this folder as your local site in Dreamweaver.
For a video tutorial on setting up a new Dreamweaver site, Define a site in Dreamweaver.
Follow these general guidelines for naming files and folders:
- File and folder names in websites should never contain spaces or any of the following characters: /\?%*:|"<>.
- Although other special characters are permitted, it is better to confine yourself to alphanumeric characters, hyphens, and underscores.
- Most file and folder names end up as part of a web page's URL, so keep them short, but meaningful. Long URLs are difficult for users to remember and type into browsers on a mobile device.
- Stick to lowercase letters for file and folder names to avoid file not found issues. Most web servers are Linux –based, which are case-sensitive.
The Manage Sites dialog box is your gateway into various Dreamweaver site functions. From this dialog box, you can initiate the process for creating a new site, editing an existing site, duplicating a site, removing a site, or importing or exporting a site’s settings.
Click the New Site button to create a new Dreamweaver site. Then specify the name and location for your new site in the Site Setup dialog box.
Click the Import Site button to import a site. For more information, see Import and export site settings.
The import site feature only imports site settings that have previously been exported from Dreamweaver. It does not import site files to create a new Dreamweaver site.
Deletes the selected site and all of its setup information from your list of Dreamweaver sites; it does not delete the actual site files. (If you want to remove the site files from your computer, you need to do that manually.) To delete a site from Dreamweaver, select the site in the site list and then click the Delete button. You cannot undo this action.
Enables you to edit information such as username, password, and server information for an existing Dreamweaver site. Select the existing site in the site list and click the Edit button to edit the existing site. (The Site Setup dialog box opens once you click the Edit button for a selected site.) For more information on editing existing site options, click the Help button in the various screens of the Site Setup dialog box.
Creates a copy of an existing site. To duplicate a site, select the site in the site list and click the Duplicate button. The duplicated site appears in the site list with the word “copy” appended to the name of the site. To change the name of the duplicated site, leave the site selected and click the Edit button.
Enables you to export the selected site’s settings as an XML file (*.ste). For more information, see Import and export site settings.
This folder location is where you keep the working copies of web pages on your local computer.
Later, if you want to publish your pages and make them publicly available, you have to define a remote folder (or a publishing server)—a place on a remote computer, running a web server that will hold published copies of your local files.
For information on defining and connecting to a remote server (or a publishing server), see Connect to a publishing server.