Forum OpenACS Q&A: Re: Problem redirecting domain name to subsite (with apache virtualhost)

i found something really helpfull

[util_current_location]!!!!!!! thanks lars & peter

so i solved it amateuristic but exactly like I wanted.
i added at the top of acs-subiste/www/index.tcl (the page that is called by default in openacs5):

set url_in_address_bar [util_current_location]
switch $url_in_address_bar {
    "http://myolddomain.nl" { # just move on
    }
    "http://mynewdomain.nl" {
        ad_returnredirect http://www.mynewdomain.nl/vtv/vn
    }
    "http://www.mynewdomain.nl" {
        ad_returnredirect http://www.mynewdomain.nl/vtv/vn
    }
    default { # just move on
    }
}

thank you for the suggestions