Change root_url in CMS Confgig Settings

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
CRSounds
Forum Members
Forum Members
Posts: 32
Joined: Sun Apr 28, 2013 6:31 pm

Change root_url in CMS Confgig Settings

Post by CRSounds »

Hi all,

In System Information under CMS Config Settings the parameters *_url.
i.e. root_url, uploads_url etc. are all set to the temp url I used to set the site up before pointing my domain name to it.
the temp url is in the format ipaddress.domain (xxx.xxx.xxx.xxx/mydomain.co.uk)
It works ok in that visitors can get to the site but when I generate a sitemap it shows the temp url's instead of the real ones.
Can anyone tell me where I can change these?
I have searched every config file I can find to no avail.
Thanks and Regards
Clive
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Change root_url in CMS Confgig Settings

Post by Dr.CSS »

If you moved it or changed where it was you need to either set the URL in the config or run install BUT AT STEP 5 DON'T CREATE TABLES OR INSTALL DEFAULT CONTENT this will fix any path problems...
CRSounds
Forum Members
Forum Members
Posts: 32
Joined: Sun Apr 28, 2013 6:31 pm

Re: Change root_url in CMS Confgig Settings

Post by CRSounds »

Dr.CSS wrote:If you moved it or changed where it was you need to either set the URL in the config or run install BUT AT STEP 5 DON'T CREATE TABLES OR INSTALL DEFAULT CONTENT this will fix any path problems...
Thanks DR.CSS,
Sorry to be so dim but which config file do I need to set it in? as I can't see it defined anywhere.
in the alternative solution you propose are you saying that if I install cmsms again but don't create tables or default content it won't change my current content at all?
Thanks again :-)

BTW: I didn't move it I just set up a new hosting plan, recreated my site on the new host using the temp url then pointed my domain name to it.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Change root_url in CMS Confgig Settings

Post by Dr.CSS »

The main config.php in the root of the site where the admin folder resides, yes if you run the install, from the same version and don't create tables or install default content it will not change your content etc...
CRSounds
Forum Members
Forum Members
Posts: 32
Joined: Sun Apr 28, 2013 6:31 pm

Re: Change root_url in CMS Confgig Settings

Post by CRSounds »

Brilliant, many, many thanks
CRSounds
Forum Members
Forum Members
Posts: 32
Joined: Sun Apr 28, 2013 6:31 pm

Re: Change root_url in CMS Confgig Settings

Post by CRSounds »

Sorry to be a pain but can anyone tell me the exact syntax to define
root_url = http://crsounds.co.uk
in config.php please?
I can't get it to work and searched and searched but can't find it anywhere.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Change root_url in CMS Confgig Settings

Post by paulbaker »

Code: Select all

$config['root_url'] = 'http://www.google.co.uk';
CRSounds
Forum Members
Forum Members
Posts: 32
Joined: Sun Apr 28, 2013 6:31 pm

Re: Change root_url in CMS Confgig Settings

Post by CRSounds »

paulbaker wrote:

Code: Select all

$config['root_url'] = 'http://www.google.co.uk';
Many thanks Paul.
Locked

Return to “CMSMS Core”