- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Joomla 3.x/VirtueMart 2.x. How to move website from sub-directory to the root folder
November 19, 2014
Hi there! You have installed the template into the folder just to test it and now you are struggling with the question on how you move it to the root? Here is your answer:
Joomla 3.x/VirtueMart 2.x. How to move website from sub-directory to the root folder
- 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:
var $live_site = ''; 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 = ''; var $log_path = '/home/username/public_html/logs'; var $tmp_path = '/home/username/public_html/tmp'; var $ftp_root = 'public_html';
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 = ‘http://www.example.com/tryjoomla’;
Change to:
var $live_site = 'http://www.example.com';
- Check your .htaccess. The subfolder should be removed there as well.
-
If you have cache enabled, log into the administrator backend (which will now be at http://www.example.com/administrator and not http://www.example.com/tryjoomla/administrator). Go to Tools -> Clean Cache and delete all cache files:
Feel free to check the detailed video tutorial below:
Joomla 3.x/VirtueMart 2.x. How to move website from sub-directory to the root folder