.htaccess Redirect Old Folder to New Folder including Subfolders and Files

Hi all

Trying to redirect a folder and all subfolders automatically to a new folder by .htaccess RewriteRules

Example:

https://www.test.tld/folderA to https://www.test.tld/folderB

https://www.test.tld/folderA/subfolder1 to https://www.test.tld/folderB/subfolder1

https://www.test.tld/folderA/subfolder1/subsubfolder1 to https://www.test.tld/folderB/subfolder1/subsubfolder1

Any advice?