Many web designers build their websites in test folders and when their designing is done they want to move their Joomla site to the root folder. I am going to explain the steps involved in moving your joomla site.
Consider that I have developed my joomla site at ‘test’ folder( youdomain.com/test ) and I am plannig it to move to root directory so that if any one access your site at yourdomain.com it should open my joomla site.
Move all of the files and folders from your Joomla folder(test folder) to the new directory. In our case from public_html/test to public_html/
Here you need to reconfigure your application. Open ‘configuration.php’ file and make the following changes in it:
Change: var $log_path = ‘/home/user/public_html/test/logs’;
To: var $log_path = ‘/home/user/public_html/logs’;
Change: var $tmp_path = ‘/home/user/public_html/test/tmp’;
To: var $tmp_path = ‘/home/user/public_html/tmp’;
Change: var $ftp_root = ‘/public_html/test’;
To: var $ftp_root = ‘/public_html’;
Change: var $live_site = ‘http://www.yourdomain.com/test’;
To: var $live_site = ‘http://www.yourdomain.com’;
There is a cache folder which stores the cache files. Delete that. (public_html/cache in our case) and this folder will be automatically created once we access our site at yourdomain.com
Reload your site at yourdomain.com. It should work perfectly.