Difference between revisions of "Moving the site among directories/sub-directories"
From Joomla! Documentation
(Punctuation corrections) |
(Condensed the code) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
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. | 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. | ||
Line 5: | Line 4: | ||
Now that you are satisfied with the site, you'll want to move to public_html. | Now that you are satisfied with the site, you'll want to move to public_html. | ||
− | 1. Move all the files from the sub-directory to the upper level directory. You can use your favourite FTP client or the control panel that your hosting service provides. | + | 1. 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. |
2. Download and open the configuration.php file in a text editor. | 2. Download and open the configuration.php file in a text editor. | ||
− | 3. Look for the following | + | 3. Simply remove the tryjoomla folder name from the path. Look for the following lines |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
+ | var $live_site = 'http://www.yoursite.com/tryjoomla'; | ||
var $log_path = '/home/username/public_html/tryjoomla/logs'; | var $log_path = '/home/username/public_html/tryjoomla/logs'; | ||
+ | var $tmp_path = '/home/username/public_html/tryjoomla/tmp'; | ||
+ | var $ftp_root = 'public_html/tryjoomla'; | ||
</source> | </source> | ||
− | Change | + | |
+ | Change to: | ||
<source lang="php"> | <source lang="php"> | ||
+ | var $live_site = 'http://www.yoursite.com'; | ||
var $log_path = '/home/username/public_html/logs'; | var $log_path = '/home/username/public_html/logs'; | ||
− | |||
− | |||
− | |||
var $tmp_path = '/home/username/public_html/tmp'; | var $tmp_path = '/home/username/public_html/tmp'; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
var $ftp_root = 'public_html'; | var $ftp_root = 'public_html'; | ||
</source> | </source> | ||
+ | |||
− | + | 4. Check your .htaccess. The subfolder should be removed there as well. | |
If you have cache enabled, login to the administrator backend (which will now be at http://www.yoursite.com/administrator and not http://www.yoursite.com/tryjoomla/administrator). Go to Tools -> Clean Cache and delete all cache files. | If you have cache enabled, login to the administrator backend (which will now be at http://www.yoursite.com/administrator and not http://www.yoursite.com/tryjoomla/administrator). Go to Tools -> Clean Cache and delete all cache files. | ||
− | [[Category:FAQ]] | + | |
+ | <noinclude>[[Category:FAQ]] | ||
[[Category:Administration FAQ]] | [[Category:Administration FAQ]] | ||
[[Category:Installation FAQ]] | [[Category:Installation FAQ]] | ||
− | [[Category:Version 1.5 FAQ]] | + | [[Category:Version 1.5 FAQ]]</noinclude> |
Revision as of 17:10, 24 January 2013
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.
1. 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.
2. Download and open the configuration.php file in a text editor.
3. Simply remove the tryjoomla folder name from the path. Look for the following lines
var $live_site = 'http://www.yoursite.com/tryjoomla';
var $log_path = '/home/username/public_html/tryjoomla/logs';
var $tmp_path = '/home/username/public_html/tryjoomla/tmp';
var $ftp_root = 'public_html/tryjoomla';
Change to:
var $live_site = 'http://www.yoursite.com';
var $log_path = '/home/username/public_html/logs';
var $tmp_path = '/home/username/public_html/tmp';
var $ftp_root = 'public_html';
4. Check your .htaccess. The subfolder should be removed there as well.
If you have cache enabled, login to the administrator backend (which will now be at http://www.yoursite.com/administrator and not http://www.yoursite.com/tryjoomla/administrator). Go to Tools -> Clean Cache and delete all cache files.