Many people develop their websites in a subfolder of their main website and when the design work is finished, they want to make the new version of the site live. If you work with Joomla, moving your application to another folder of your hosting account requires few reconfigurations. In this article we will explain to you the different steps in this process.
For example, let us presume that we have a Joomla 1.5 application installed in the public_html/newsite folder in our account and we want to move it to the public_html directory so that it will be directly accessible through www.yourdomain.com.
The change requires the following actions to be taken:
- 1. Move all of the files and folders from the initial Joomla folder to the new directory. In our case from public_html/newsite to public_html
- 2. Configure Joomla to work from the new location. You should edit the configuration.php in the application root folder and make the following changes in it:
Change from: var $log_path = ‘/home/user/public_html/newsite/logs’;
To: var $log_path = ‘/home/user/public_html/logs’;
Change from: var $tmp_path = ‘/home/user/public_html/newsite/tmp’;
To: var $tmp_path = ‘/home/user/public_html/tmp’;
Change from: var $ftp_root = ‘/public_html/newsite’;
To: var $ftp_root = ‘/public_html’;
Change from: var $live_site = ‘http://www.yourdomain.com/newsite’;
To: var $live_site = ‘http://www.yourdomain.com’;
- 3. If enabled, clear your Joomla cache (public_html/cache in our case)
Now, simply clear your browser cache and reload your site. Everything should be working fine.