
the Mac or in Explorer in Windows. Changing the filename was easy, but what this person may not have realized is that if he or she didnt change the links to the file when the file was renamed, the links are now broken. If only one page links to the file that your clueless teammate changed, fixing the broken link isnt such a big deal. As long as you remember what file the page links from, you can simply open that page and use the Properties inspector to reset the link the same way you created the link in the first place. (You can find out all the basics of link creation in Chapter 2.) But many times, a single page in a Web site is linked to many other pages. When thats the case, fixing all the link references can be time-consuming, and forgetting some of them is all too easy. Thats why the Check Links feature is so helpful. First, it serves as a diagnostic tool that identifies broken links throughout the site (so you dont have to second-guess where someone may have changed a filename or moved a file). Then it serves as a global fix-it tool. You can use the Check Links dialog box to identify the page a broken link should go to, and Dreamweaver automatically fixes all links referring to that page. The following section walks you through this very cool process. If you are working on a dynamic, database-driven site or if your site was altered with programming that was done outside of Dreamweaver, the Check Figure 3-2: You can enter any URL or e-mail address to make quick global changes. 82 Part II: Looking Like a Million (Even on a Budget) Links feature may not work properly. This feature works best for sites with static HTML pages. Checking for broken links To check a site for broken links, follow these steps: 1. Select the site name from the drop-down list at the top of the Files panel and choose the site you want to work on from the list. Link checking works only for sites listed in the Dreamweaver Site dialog box. For more information about the Site dialog box and how to set up a new site or import an existing one, see Chapter 2. 2. From the menu, choose Site?Check Links Sitewide. The Link Checker tab opens in the Results panel at the bottom of the page, just under the Properties inspector, as shown in Figure 3-3. The tab displays a list of internal and external links. The tab also lists any pages, images, or other items not linked from any other page in the site (Dreamweaver calls these orphans). Unused images can waste space on your server so this list is handy if you want to clean up old images or other elements you no longer use on the site. Most service providers limit the amount of space on your server and charge extra if you exceed that limit. Deleting unused files helps you save valuable server space, especially if they are image or multimedia files. But remember, just because you delete them from your hard drive doesnt mean they are deleted off the server. Make sure you remove them from the Remote Site window in the Files panel as well as the Local Site panel. (For more on using FTP and synchronization to update or delete files on your server, see Chapter 2.) If you find broken links, the next section, "Fixing broken links," shows you how Dreamweaver automatically updates multiple link references to make fixing them fast and easy.