In order to move a Joomla installed directory, all you need to do is:
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