In order to move a Joomla installed directory, all you need to do is:
- Move the files to the root folder
- Switch on the SEF URLs, if they are not switched on yet.
Move Joomla Installed Directory using Codes
You can also move Joomla installed directory by changing the codes in the configuration.php file. Use the following code:
var $log_path = 'absolutepathtoyoursitefoldernamelogs'; //remove foldername from path
var $tmp_path = 'absolutepathtoyoursitefoldernametmp'; //remove foldername from path
var $live_site = 'https://www.yoursite.com/foldername'; // remove the foldername or leave empty