.In this example, any requests for at the old location is automatically redirected tothe new location.For more advanced redirection techniques, use the mod_rewrite module included with theApache HTTP Server. For more information about configuring the mod_rewrite module, refer tothe Apache Software Foundation documentation online athttp://httpd.apache.org/docs-2.0/mod/mod_rewrite.html.5.43. IndexOptionsIndexOptions controls the appearance of server generated directing listings, by adding icons,file descriptions, and so on. If Options Indexes is set (refer to Section 5.23, “Options”), theWeb server generates a directory listing when the Web server receives an HTTP request for adirectory without an index.First, the Web server looks in the requested directory for a file matching the names listed in theDirectoryIndex directive (usually, index.html). If an index.html file is not found, ApacheHTTP Server creates an HTML directory listing of the requested directory. The appearance ofthis directory listing is controlled, in part, by the IndexOptions directive.The default configuration turns on FancyIndexing. This means that a user can re-sort adirectory listing by clicking on column headers. Another click on the same header switches fromascending to descending order. FancyIndexing also shows different icons for different files,based upon file extensions.The AddDescription option, when used in conjunction with FancyIndexing, presents a shortdescription for the file in server generated directory listings.IndexOptions has a number of other parameters which can be set to control the appearance ofserver generated directories. The IconHeight and IconWidth parameters require the server toinclude HTML HEIGHT and WIDTH tags for the icons in server generated webpages. TheIconsAreLinks parameter combines the graphical icon with the HTML link anchor, whichcontains the URL link target.5.44. AddIconByEncodingThis directive names icons which are displayed by files with MIME encoding in server generateddirectory listings. For example, by default, the Web server shows the compressed.gif icon nextto MIME encoded x-compress and x-gzip files in server generated directory listings.5.45. AddIconByTypeThis directive names icons which are displayed next to files with MIME types in servergenerated directory listings. For example, the server shows the icon text.gif next to files witha mime-type of text, in server generated directory listings.5.46. AddIconIndexOptions175