[ic] Mangling DirectoryIndex

Rene Hertell interchange at hertell.com
Thu Dec 6 07:15:50 EST 2007


Ton Verhagen wrote:
> Hi All,
>
> Would it be possible to set the value of the DirectoryIndex config
> variable in an Actionmap?
>
> I would like to serve a different entry page for different domains.
>
> In the interchange.cfg I have got entries like:
> Catalog  mycat  alias           www.domain_1.com
> Catalog  mycat  alias           www.domain_2.com
> Catalog  mycat  alias           www.domain_3.com
> etc.
>
> I test for a domain and set the $Config->{DirectoryIndex}  to a
> page name in an Actionmap.
>
> For www.domain_1.com e.g.
>         $Config->{DirectoryIndex} = "index_1.html";
>
> The $Config->{DirectoryIndex} is being set, but the page
> doesn't show up. The standard index.html is being served instead.
>
> What could I be missing?
>
> Many thanks guys.
>
> Best regards,

Hi Ton,

I'm just using a simple bounce for testing if a different domain is
requested instead of the default domain. Works perfectly for my purpose.

[if term="[env HTTP_HOST]" op="eq" compare="bailatino.fi"]
[or term="[env HTTP_HOST]" op="eq" compare="www.bailatino.fi"]
[bounce page=|[area href="bailatino"]|]
[/if]


René

-=-=-
... There are 3 kinds of people: those who can count and those who can't.


More information about the interchange-users mailing list