httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] language-based redirection
Date Sun, 03 Feb 2008 23:56:07 GMT
On Feb 1, 2008 1:54 PM, Zbigniew Szalbot <zszalbot@gmail.com> wrote:

> Thank you very much Joshua! I haven't realized I need to call
> index.html.var. I switched to Mutilviews as it is much better indeed.
>
> I have one more question. Now that it works, I have the following
> directory structure for a virtual domain
>
> DocumentRoot /usr/local/www/blog/
>
> blog/
> this is where index.html.en and index.html.po are
>
> I would like index.html.po redirect to
> blog/pl/
>
> and index.html.en redirect to
> blog/en/
>
> I realize I can put refresh in the html files to automatically
> redirect to blog/pl/ or blog/en/
> Something like http-equiv="REFRESH" content="0;URL=http://domain.tld/blog/en/"
>
> But is there a better way of doing it?

What exactly are you trying to accomplish? If you do redirects like
that, you are going outside the multiviews world.

It can be done with mod_rewrite, but if you better explained why you
want to do it, we might have better answers.

Joshua.

---------------------------------------------------------------------
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