httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: content negotiation examples
Date Fri, 19 Jul 2002 02:48:07 GMT

On Thu, 18 Jul 2002, Tim Luoma wrote:

> I want to use content negotiation to feed the correct page depending on
> the capabilities of the browser.

This is discussed in detail at
http://httpd.apache.org/docs-2.0/content-negotiation.html

The two choices are type-maps and multiviews.  The first is faster at
run-time, while the second is usually quicker to setup.

Assuming you want the second, it is probably as easy as adding
"Multiviews" to your Options lines and then referring to the images
without their file extensions.  So, for example, if you have an
image01.jpg and image01.png in the root directory of your site, then
reference them as <img src="image01">.

Now, exactly what effect this will have depends on how the browser has its
Accept lines configured.

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message