[opencms-dev] where is "create sibling"

Christoph Kukulies kuku at physik.rwth-aachen.de
Fri Feb 27 16:35:24 CET 2015


Am 27.02.2015 um 16:09 schrieb ] Code Create [:
> Hi Christoph,
>
> why do you do the redirect at all?
> You're already differentiating by TLD.
> Why not just rewrite internally to your /de/ and /en/ folders via Apache?
>
> Kind regards, Bernd
>
>
Good question. Maybe historically reasoned. My site is in ROOT and I'm 
doing the rewrite rules in two VirtualHost sections, one for mysite.com, 
the other for mysite.de. The former
does

  RedirectPermanent /opencms/           http://www.mysite.com/

the latter

  RedirectPermanent /opencms/           http://www.mysite.de/

In opencms-system.xml I have

  <site server="http://www.mysite.de" uri="/sites/mysite/"/>
  <site server="http://www.mysite.com" uri="/sites/mysite/"/>

So I will have to decide once again, where the request is redirected to.

Or do you have a better suggestion?



-- 
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de



More information about the opencms-dev mailing list