Page 1 of 1

Chaging Root URL of Site

Posted: Fri Apr 01, 2011 3:01 pm
by bouschie
I'd like to change the root URL of my site. If I reinstall CMSMS in the new directory, and point to the same database, will that do it? Or will that overwrite my existing site?
Or is there an easy way to modify the install to a new root?

Thanks in advance. I'm running CMSMS 1.9.3

Re: Chaging Root URL of Site

Posted: Fri Apr 01, 2011 4:18 pm
by Wishbone
You don't have to re-install.. Just move the site and edit the paths and URLs in config.php. Clear your cache first. Adjust paths in your .htaccess file if necessary.

Re: Chaging Root URL of Site

Posted: Fri Apr 01, 2011 4:37 pm
by bouschie
Thanks wishbone. How can I clear the cache? Is it likely I'll have to edit the htaccess? I'm not sure how to go about doing that if I do.

Thanks again.

Re: Chaging Root URL of Site

Posted: Fri Apr 01, 2011 4:50 pm
by Wishbone
Cache is cleared through the admin panel:
Site Admin -> Global Settings -> Advanced Setup -> Clear Cache

If you have something like 'RewriteBase /' in your .htaccess, you will need to change that to reflect the path of the new location.