Site Architecture The architecture of a Web site is the organization of all its pages, and how the pages relate to one another. A good site architecture matters to you as a site’s designer, as it helps you to easily locate and edit your pages, and link them to one another. Site architecture is equally important to your site’s visitors. A sensible URL structure and a site navigation that reveals the general contents of your site increase the likelihood that users will understand what’s on your site, how to fi nd it, and where they are relative to the rest of your site. To build a manageable Web site involves developing a thoughtful, scalable architecture for its pages—and a Web-like environment to test it in. This chapter looks at some of the choices you will have to make in developing your site’s architecture once you have a local Web server running to test it in. There are three types of architectures that are commonly used on Web sites: • File-oriented architecture, which places all of the XHTML pages of a site in the root Web folder • Folder-oriented architecture, which places related pages into separate folders off of the root Web folder One alternative method for controlling the clutter of individual files in your root Web folder while also helping users orient themselves within your site is to create folders for each of your major site areas. For example, rather than having a portfolio overview located at http://example.com/portfolio.htm , your portfolio can be located at http://example.com/portfolio/ , thanks to the magic of the index file (see “The Index File” sidebar). Then, all of your portfolio items, like a company newsletter that you designed, can be stored in the portfolio folder, and accessed at URLs like http://example .com/portfolio/company-newsletter.htm . The benefit of folders is that users can cut down the URLs to move up to higher levels in a site. In other words, visitors to your site can go to the address bar in their browsers and delete the file name off of most Apache Web servers are configured to serve index.htm when either the root of a site or a folder is requested (e.g., http://example.com/ or http://example.com/contact/ ). If you save a file named index.htm in your root, but still see a listing of files, you may need to configure your Web server by adding a line that looks something like this to your .htaccess file: DirectoryIndex index.htm index.html index.php
المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .
|