May 16, 2011, 5:04 a.m.
posted by r11
When you’re working on a site, keep in mind that you must save all pertinent files into the Web-content folder. Otherwise, they may get lost, or not make it to the server.
To open files from the Site window, double-click the filename. If you want to open files outside the site (not in your Web-content folder), choose File®Open and browse to locate the files. If you open a file this way, make sure you read the next section, “Saving files,” to make sure that the file ends up in your main site folder.
When saving files that were launched from GoLive by double-clicking them in the Site window, you can simply choose File®Save. If you’re saving a new file or an existing file that has not been saved to your Web-content folder, choose File®Save As. In the Save As dialog box that appears, rename the file if you want, and click the Site Folder button in the lower portion of the dialog box. A pop-up menu appears; select Root to navigate directly to the Root (Main) site folder. Then click Save.
Click the New Folder icon at the top of the Save As dialog box to create a subfolder in the GoLive Site window. When you drag files into the subfolders, GoLive automatically updates the code so that you don’t have broken links!
Get in the habit right away of naming your files and folders correctly. Follow these rules to make sure that links and pages appear when they are supposed to:
Use lowercase for all filenames: Some functions are case-sensitive, meaning they will not work if you don’t get the capitalization right. Using all lowercase letters in filenames is an easy way to ensure you don’t have broken links because you couldn’t remember whether you initial-capped a filename or not. Some Web servers may require filenames to be in lowercase as well.
Don’t use spaces in filenames: If you need to separate words in a filename, use the underscore character instead of a space. For example, instead of file new.html, use file_new.html or even filenew.html.
Use only one dot, followed by the extension: Macintosh users are used to having no naming restrictions, so this can be the toughest rule to adhere to. Don’t name your files something like finally.done.feb. 9.jpg. That is B-A-D for the Internet. Examples of dot-extensions are as follows: .jpg, .gif, .png, .htm, .html, .cgi, .swf, and so on.
Avoid odd characters: Characters to avoid include dashes (-) or forward slashes (/) at the beginning of the filename. These mean other things to the Web server and will create errors on the site.