ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Redirected to wrong page

March 19, 2012 3:53pm

Subscribe [1]
  • #1 / Mar 19, 2012 3:53pm

    Fred Carlsen

    42 posts

    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?

  • #2 / Mar 20, 2012 6:24pm

    Sean C. Smith

    3818 posts

    Hi Fred Carlsen,

    I’m sorry that you are experiencing this problem. In order to better troubleshoot we’re going to need to simplify things by removing the bootstrap config. I’d also like you to provide very specific and clear examples of what you are doing, what you expect to happen and what is actually happening. If there is any relevant template code that we need to know about please let me know as well.

    looking forward to your response.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases