Appendix B. Copying a Web Site

You’ll often find it necessary or convenient to make a copy of an existing web site—that is, to make a new web site that is the same as the original except for a different name. We do this frequently in this book when building up examples, layering functionality on to a previous example. In the real world, you might want to make a copy of a web site so you can experiment without breaking something that works. We often copy a web site at various stages of development to have an easy snapshot to refer to without having to go to the bother of restoring from backup.

Before looking at the different ways to copy a web site, we’ll explain a bit about what actually constitutes a web site. However, if all you want is the cookbook recipe—the set of steps you need to follow to copy a web site—you can skip the following discussion and move on to the next two sections, “Copying the Web Site Without Using the IDE” and “Copying the Web Site with the IDE.”

Virtual Directories

Physically, what comprises a web site? A folder on the hard drive of the web server. If the server in question, such as Microsoft IIS (Internet Information Services), is operating outside the bounds of Visual Studio, Visual Web Developer, or some other development tool, then the folder containing the web site must be designated as a virtual directory—that is, a directory that is mapped to a web URL by the web server. When a user enters that URL into a browser, the request is passed to the web server ...

Get Learning ASP.NET 3.5, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.