I think I'm beginning to lose my mind.
I want to deliver different home pages (replace index.html) based on
the contents of %{HTTP-ACCEPT} ... basically as follows:
if HTTP-ACCEPT matches /wml/ (perl regular expression), I
want to redirect the user to index.wml
if HTTP-ACCEPT matches /hdml/ (perl regular expression), I
want to redirect the user to index.hdml
Otherwise, they get index.html
I can't figure out why the following doesn't work:
Rewri*gine on
RewriteCond %{ENV:HTTP-ACCEPT} wml
RewriteRule ^/index\.html$ index.wml
RewriteCond %{ENV:HTTP-ACCEPT} hdml
RewriteRule ^/index\.html$ index.hdml
I've tried everything from JUST
Rewri*gine on
RewriteRule ^/$ index.wml
To including just about every flag possible
and STILL nothing happens. Can anybody tell me what's wrong?
Apache 1.3.12 + mod_php4 + mod_perl + mod_ssl on FreeBSD 3.5
--