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.

Changing site URL issue

July 08, 2012 8:21pm

Subscribe [0]
  • #1 / Jul 08, 2012 8:21pm

    onecarib

    7 posts

    Hoping to clarify whether or not I missed a setting in EE or if it’s related to server configuration, buuut: (Using EE2.4 and MSM2.1.2)

    In the second site (site2) I’m looking to change the domain it uses. So, I changed it from http://domain1.com to http://domain2.com (index.php, admin.php and in General Configuration).

    However, when I attempt to log in now it sends me to a “log in success” page, then immediately redirects me back to whichever page I was on when I clicked the log in button but fails to actually log me in.

    If I switch back to http://domain1.com it works properly and I can log in again.

    Is there another place I should be updating this other than index.php, admin.php or General Settings, and if not… any suggestions?

    Thanks!

    Jeff

  • #2 / Jul 09, 2012 5:40pm

    Dan Decker

    7338 posts

    Hi Jeff,

    I have an example set of MSM files I use for reference. Can you check your files against the example?

    //CONFIG//
    $config['cp_url'] = "http://engine.dev/admin.php";
    $config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
    $config['is_system_on'] = "y";
    $config['allow_extensions'] = "y";
    $config['site_label'] = "Test 23";
    $config['cookie_prefix'] = "";
    $config['multiple_sites_enabled'] = "y";
    
    index.php and admin.php site 1
    NO CHANGES
    
    index.php and admin.php site 2
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'msm_test';
    $assign_to_config['cp_url'] = 'http://msm.dev/admin.php';
    $assign_to_config['site_url'] = 'http://msm.dev';
    
    --- admin ---
    $system_path = '../system';
    /*---------------------------*/
    $assign_to_config['site_name']  = 'msm_test';
    $assign_to_config['cp_url'] = 'http://msm.dev/admin.php';

    Cheers,

  • #3 / Jul 09, 2012 11:44pm

    onecarib

    7 posts

    Hi Dan,

    Turns out my config (admin.php, index.php and General Config) was set up properly, but while browsing around I found the Cookie Settings, which were still set to use the old domain.

    Didn’t know they were there, but now I do! 😊

    Cheers,

    Jeff

  • #4 / Jul 11, 2012 12:29pm

    Dan Decker

    7338 posts

    Hi Jeff,

    So you are all good then?

    Is there anything else I can assist you with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases