Redirect subdirectory to root

Silverstripe Version: 4.4.x

Question: How can I redirect a subdirectory to the root directory in a webserver?

My website can be accessed from mydomain.com/new_site/test/public/<page> or mydomain.com/<page>, but I want the first form redirect to the second form. In essence, how do i redirect all pages of a site of the first form to a url of the second form?

Currently, this is my .htaccess:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteCond %{REQUEST_URI} !^/new_site/test/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /new_site/test/public/$1
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(/)?$ new_site/test/public/index.php [L]

The purpose of the htaccess is to allow all links to be accessed through a url of the second form. The issue is, this does not create a redirection from the first form to the second form.