Chaging Root URL of Site

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
bouschie
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 14, 2008 3:05 am

Chaging Root URL of Site

Post 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
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Chaging Root URL of Site

Post 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.
bouschie
Forum Members
Forum Members
Posts: 19
Joined: Sat Jun 14, 2008 3:05 am

Re: Chaging Root URL of Site

Post 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.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Chaging Root URL of Site

Post 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.
Post Reply

Return to “The Lounge”