Redirect options

Dears

The resources generated on our sites can be used by third parties. These applications are being affected by the change in the file schema

In the old configuration we had the following structure

[https://<your-site>/sites/<your-site>/files/<directories>/<archive>]

in the new cloud the following

[https://<your-site>/sites/default/files/<directories>/<archive>]

Can you implement a rule at the .htaccess file level?
something like this?

RewriteRule ^oldsubdirectory/(.*)$ /newdirectory/$1 [R=301,NC,L]

best regards
Guillermo