I’m running a EE2.4 installation on a server where the site is setup under a virtual host.
That means SERVER_NAME reports the virtual host. In my bootstrap config (based on NSM Boostrap), I use HTTP_HOST instead, which means the site_url is set to the domain we’re accessing the site with.
In this case I got three different domains, one for each language.
Now, I’m having trouble locating why EE redirect to the virtual host whenever I go access the CP or I use Structures first_child_redirect.
The latter uses the create_url() function, which I assume the redirect in the CP uses as well. If the site_url seems to be set correctly everywhere, shouldn’t these redirects respect that as well?