proper domain for $config['root_url'] in config.php
Posted: Wed Jan 04, 2012 1:07 am
Hi all,
We are planing to redo our web site using the latest version of CMS Made Simple on a new server (VM). The old site will be retired once the new site is ready. My question is, what are the appropriate values for $config['root_url'] and $config['ssl_url'] on the new server in this situation? Can we set $config['root_url'] to same the url as the live site? (eg 'http://www.mydomain.com') or should we set it to 'http://site2.mydomain.com' and make the appropriate DNS updates. Once the development is done, we would then change $config['root_url'] to 'http://www.mydomain.com' and do another DNS update to point to the new server IP.
To be clear, we have ftp access to the new site (server) using it's IP address so the hostname won't be an issue there.
Thanks for your input.
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. "http://blah.com"
$config['root_url'] = 'http://www.mydomain.com';
#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://www.mydomain.com';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/var/www/cmsms';
We are planing to redo our web site using the latest version of CMS Made Simple on a new server (VM). The old site will be retired once the new site is ready. My question is, what are the appropriate values for $config['root_url'] and $config['ssl_url'] on the new server in this situation? Can we set $config['root_url'] to same the url as the live site? (eg 'http://www.mydomain.com') or should we set it to 'http://site2.mydomain.com' and make the appropriate DNS updates. Once the development is done, we would then change $config['root_url'] to 'http://www.mydomain.com' and do another DNS update to point to the new server IP.
To be clear, we have ftp access to the new site (server) using it's IP address so the hostname won't be an issue there.
Thanks for your input.
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. "http://blah.com"
$config['root_url'] = 'http://www.mydomain.com';
#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://www.mydomain.com';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/var/www/cmsms';