httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] How to Configure Apache to detect browser and request apropriade Index.* file.
Date Tue, 21 Sep 2004 10:32:46 GMT
João Gil ACE-SC wrote:
>   Is it possible to configure apache to detect bowser type and depending
>   on the browser, apache requests the apropriate index.* file. Eg it the
>   browser is a WAP device apache would open index.wml else index.html.
>   If it is possible what do I have to do?

You can problably do it using BrowserMatch and env variables. Possibly also
simply using multiviews, but I'm not sure.

One way is using mod_rewrite. This very much depends on your site, but to

RewriteCond %{USER_AGENT} WAP
RewriteRule (.*)\.html $1\.wml

How to safely match a WAP device, I don't know. See:

Content-negotiation (multiviews) is another possibilty, beacuse the client
should send Accept-* request headers indicated supported formats etc, and
then Apache selects the most appropriate version of the resource. How this
could work with WAP devices, I don't know. See:

Robert Andersson

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message