I'm upgrading a multi-language site from EE1 to EE2, and it's using the technique of duplicating
path.php inside subdirectories named for each language, and defining global language variables inside
So I upgraded the site to EE2, ditched the
path.php files from the subdirectories, updated the
index.php files to the new EE2 versions, and added these configuration variables:
$assign_to_config['site_url'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . '/en/'; $assign_to_config['global_vars'] = array( 'country_code' => 'en', 'language' => 'english' );
The global variables seem to be working, but
site_url is not. I tried:
$config['site_url'] = '...'
$site_url = '...'
I'm also using Focus Lab Master Config, and I made sure to comment out the
$env_config['site_url'] variable inside
config.master.php. I also double-checked that it's not being defined inside
What am I doing wrong here?
site_url global variable works when used in templates, but it isn't applied in the control panel, in Admin > General Configuration, for example.
I'm using FocusLab Master Config, and assigning
site_url from within
config.master.php does update the control panel. So there must be something getting in the way somewhere between