How to move Craft from a subdirectory to public_html I have my Craft 3 site all up and running on domain.com/2/

I need to move it to just domain.com

The Craft files are all one level above public_html like they should be. Not sure what I need to change to bring everything from /2/ to the root level. Would like to avoid installing a fresh copy of Craft if possible.
Without having seen your setup, I'd say this is what you need to do:


Move all files and folders (don't forget the hidden ones) to the correct location
Edit your web/index.php file, to make it look for Craft in the right location (it's looking 2 folders up now, it should only be one folder up.
Change your site's base url, in your config/general.php, .env, or wherever you've set it.
Change the paths and urls for the asset folders
Just to be sure, clear your cache (removing the contents of storage/runtime should do the trick)


Again, depending on your setup there's a thousand things that could prevent this from working, but it should get you going!