Moving WordPress from Root to a subfolder

I have WordPress set up on my servers www root directory. Now, I would like to also host other content on my server, so I would like to move WordPress to a subfolder like /nameofblog.

However, in the tutorial found here, it sounds as if they want to keep the url pointing at the root directory, and thus they set wordpress up to still keep the index.php and some files in the root. I want to change my domain to just have the new folder as it’s document root (i have complete access to server and domain). Do i still need to change all this stuff that seems related to having 2 different urls (wordpress address and blog url)? Or can i just copy the files to a subdirectory, make the url point there and I’m good?

Solutions Collecting From Web of "Moving WordPress from Root to a subfolder"

Generally when moving a WordPress site I copy the files to the new path then update the URL in the Dashboad. After logging into the ‘new’ install and making sure everything looks good I remove the old directory.

to move a WordPress site from root to sub folder you first need to copy all the files and folder of WordPress from root folder and then paste it inside sub folder. After doing this you need to change the WordPress address and site address and change it with your sub folder. You can also change these value from your database table. You can find it in the table [prefix]_options. There you will find “siteurl” and “home”. Replace it with your sub folder url path.

I did not need to change anything, since the only thing that really changes in this scenario, is the filepath, and wordpress does not use absolute file paths.