Name

AddAltByType

Synopsis

                     AddAltByType 
                     string 
                     mime-type 
                     ...  access.conf/<Directory>
                  

[server config, within <VirtualHost> or <Directory>, or .htaccess]

Similar to AddAlt, except that it specifies alternative text based on the media type of the file being listed. For example, to use the alt text “image” for all GIF files, the directive would be:

AddAltByType "image" image/gif

See also FancyIndexing.

Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.