
folders in the Finder or Explorer, you break the links in existing Web pages. In Dreamweaver, when you move a linked file into a new folder, the Update Files dialog box appears with a list of links that need to be updated, as shown in Figure 3-1. To adjust the links, choose Update. If you choose Dont Update, any links to or from that file are left as they are, and likely wont work any more. To rename a selected file: Click the selected file, and after the cursor appears at the end of the filename, type your new filename or edit the existing name. When you finish, press Enter (Return on a Mac). Again youre prompted to update any links affected by the filename change. Choose Update to adjust the links. 80 Part II: Looking Like a Million (Even on a Budget) Making global changes to links If you want to globally change a link to point at a new URL or to some other page on your site, you can use the Change Link Sitewide option to enter the new URL and change every reference automatically. You can use this option to change any kind of link, including mailto, ftp, and script links. For example, if the e-mail address that you list at the bottom of every page on your site changes, you can use this feature to fix it automatically - a real timesaver. You can also use this feature when you want a string of text to link to a different file than it currently does. For example, you can change every instance of the words Enter this months contest to link to /contest/january.htm instead of /contest/december.htm throughout your Web site. To change all links from one page on your site to another using the Change Link Sitewide feature, follow these steps: 1. Make sure the site you want to work on is displayed in the Files panel. (See Chapter 2 for more on this). 2. From the menu, choose Site?Change Link Sitewide. The Change Link Sitewide dialog box appears (see Figure 3-2). 3. Enter the old address and the new address you want to change it to, or click the Browse buttons to identify files where you want to change the links. 4. Click OK. Dreamweaver updates any documents that include the specified links. These changes occur only on the local version of your site on your hard drive and are reflected on your live site until you upload them to your server. To automatically reconcile these changes, use the Dreamweaver Synchronize Files option described in Chapter 2. Figure 3-1: The Update Files dialog box shows you which links change. Chapter 3: Planning and Maintaining a Web Site 81 Finding and Fixing Broken Links If youre trying to rein in a chaotic Web site, or if you just want to check a site for broken links, youll be pleased to discover the Check Links feature. You can use Check Links to verify the links in a single file or an entire Web site, and you can use it to automatically fix all the referring links at once. Heres an example of what Check Links can do. Assume that someone on your team (because you would never do such a thing yourself) changed the name of a file from new.htm to old.htm without using the Dreamweaver automatic