If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

Featured templates

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

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

 
Live Chat
We help you to choose the right product.
Start chat