Categories

Featured templates

Featured templates

Joomla 3.x/VirtueMart 2.x. How to move website from sub-directory to the root folder

Sarah Vaynbaum November 19, 2014
Rating: 5.0. From 2 votes.
Please wait...

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

  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 = '';
    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';

    screenshot1

    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';
  4. Check your .htaccess. The subfolder should be removed there as well.
  5. 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:

    screenshot2

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

Modern Joomla Templates
This entry was posted in Joomla! Tutorials, VirtueMart Tutorials and tagged joomla, move, root, subfolder, VirtueMart. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket