httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zbigniew Szalbot" <>
Subject Re: [users@httpd] language-based redirection
Date Mon, 04 Feb 2008 16:45:46 GMT

2008/2/4, Joshua Slive <>:
> On Feb 4, 2008 1:43 AM, Zbigniew Szalbot <> wrote:
> > The thing is that in order to provide blogs in two languages I cannot
> > install one blog and make it display in two languages. It needs to be
> > two blogs. Hence, they need to be in two separate directories. But I
> > am happy to do the langauge recognition in a common directory and then
> > redirect to a specific blog. Thank you!
> If you want the full language negotiation done by apache (checking
> priorities, etc), then your meta-refresh hack may indeed be the best
> idea. (I almost never suggest that, since it is much better to do
> proper HTTP redirects. But this is a special case. I don't know a
> clean way to get mod_negotiation to generate an external redirect.)
> If you just want to do a simple scan of the browser's accept-language,
> you can use mod_rewrite:
> RewriteCond %{HTTP:Accept-Language} ^pl$
> RewriteRule ^/blog/?$ [R,L]
> RewriteRule ^/blog/?$ [R]

I will probably stick with meta-refresh as the above does not seem to
work (I put the directive in a .htaccess file).

Anyway, thank you very, very much for your contribution!

Zbigniew Szalbot

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