httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] content negotiation by directory
Date Thu, 30 Nov 2006 11:54:03 GMT
On Thu, 30 Nov 2006 11:08:17 +0100
"Boyle Owen" <Owen.Boyle@swx.com> wrote:


> What about mod_rewrite? Maybe something conditional on the
> Accept-Language header?

That'll work up to a point.  Specifically, the point of a yes/no
decision as to whether a user accepts a language.

But content negotiation is a bigger wheel to reinvent, because it
supports not just yes/no, but also preferences such as "I read A
and B, but prefer A, and at a pinch I also read C and D".

Using mod_negotiation with map files - like Apache's own
documentation is bundled - is a better solution.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message