Rewrite WordPress Url from root to subfolder without moving files

I have a WordPress installation in the root folder “example.com/”. I want the url to be “example.com/blog”. (Rewrite from root to folder “/blog/”)

Is it possible to do this without moving files via FTP to this actual directory? I would like to do the rewrite just via wp-config and via .htaccess.