Joomla User Manual
Manual Index
Moving Installation Directory
Many times you install Joomla in a sub-directory and then want to move it to a higher level directory, here's a short tutorial on how to do it.
Say you have installed Joomla in the following folder: public_html/tryjoomla. Now that you are satisfied with the site, you'll want to move to public_html.
- Move all the files from the sub-directory (i.e., public_html/tryjoomla) to the upper level directory (i.e., public_html). You can use your favourite FTP client or the control panel that your hosting service provides.
- Download and open the configuration.php file in a text editor.
- Simply remove the tryjoomla folder name from the path. Look for the
following lines
Change to:var $live_site = ''; var $log_path = '/home/username/public_html/tryjoomla/administrator/logs'; var $tmp_path = '/home/username/public_html/tryjoomla/tmp'; var $ftp_root = 'public_html/tryjoomla';
N.B. The $live_site variable rarely needs to be given a value. But if it was given a value during installation then edit that path as well.var $live_site = ''; var $log_path = '/home/username/public_html/administrator/logs'; var $tmp_path = '/home/username/public_html/tmp'; var $ftp_root = 'public_html';
Change to:var $live_site = 'http://www.example.com/tryjoomla';
var $live_site = 'http://www.example.com';
- Check your site's .htaccess file. The subfolder should be removed there as well. The RewriteBase directive should be commented out. Check for a RewriteRule that contains the old subdirectory.
- Verify that no redirect orders to the old subdirectory are in place in your hosting control panel.
- If you have cache enabled, login to the administrator backend (which
will now be at
http://www.example.com/administrator
and nothttp://www.example.com/tryjoomla/administrator
). Go to System / Cache and delete all cache files.