httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Rose" <>
Subject [users@httpd] Redirecting by languare with .htaccess
Date Sun, 01 Sep 2002 23:40:24 GMT
I'm trying to direct traffic thru language with .htaccess. I've read up as
much as I can but I cannot find anything that will specifically help.

What I'm trying to do is:

Have all the brousers that are "en" enabled stay at my site.
All the ones that are "it" enabled to go to a different page on my site
All the ones that are "de" enabled to go to another different page on my
And the remainder redirect to a completely different site.

This is what I wrote, but it does not work.

RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP:Accept-Language} !^en [NC]
RewriteRule ^(.it)
RewriteRule ^(.de)
RewriteRule ^(.*)

Could anyone tell me what I'm doing wrong? Or make any recomendations?


Craig Rose

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