If you want to Redirect all folders and files within the folder to Root Domain then you can do it with htaccess file.
Copy the simple code given below and change the folder name which you want to redirect and domain name and paste it in your .htaccess file which is located at root domain.
RewriteEngine On
RewriteRule ^foldername/* http://www.domain.com/ [R=301,L]
That's it now save the file and see the changes. you can leave a comment if you have any doubt.
Copy the simple code given below and change the folder name which you want to redirect and domain name and paste it in your .htaccess file which is located at root domain.
RewriteEngine On
RewriteRule ^foldername/* http://www.domain.com/ [R=301,L]
That's it now save the file and see the changes. you can leave a comment if you have any doubt.