Linking and Navigation > Managing links > Changing a link sitewide

 

Changing a link sitewide

In addition to having Dreamweaver update links automatically whenever you move or rename a file, you can manually change all links (including e-mail, FTP, null, and script links) to point somewhere else. You can use this option at any time (for example, you might have the words "this month's movies" linked to /movies/july.html throughout your site, and on August 1 you must change those links to point to /movies/august.html), but it's particularly useful when you want to delete a file that other files link to.

To change a link sitewide:

1 Select a file in the Local Folder pane of the Site window.
2 Choose Site > Change Link Sitewide.
3 In the dialog box that appears, click the folder icon to browse to and select a file. You can also type the path and file name in the Into Links To field.
4 Click OK.
Dreamweaver updates any documents that link to the selected file, making them point to the new file, using the path format already used in the document (for example, if the old path was document relative, the new path is also document relative). The type of link, whether document or root-relative, doesn't matter. The link is updated automatically.

After a link is changed sitewide, the selected file becomes an orphan (that is, no files on your local disk point to it). You can safely delete it without breaking any links in your local site.

Note: Because these changes are occurring locally, you must manually delete the corresponding orphan file on the remote site and put or check in any files in which links were changed; otherwise, visitors to your site won't be able to see the changes.

To change e-mail, FTP, null, or script links sitewide:

1 Choose Site > Change Link Sitewide.
2 In the Change Link Sitewide dialog box, enter the following information:
In the Change All Links To field, type the full text of the link you are changing.
In the Into Links To field, type the full text of the replacement link.
3 Click OK.

For example, to update all the e-mail links that point to your old address, you might type mailto:juser@isp.com in the Change All Links To field, and type mailto:juser-interface@isp.com in the Into Links To field.