Re: language-based redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 1, 2008 1:54 PM, Zbigniew Szalbot <zszalbot@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux