How do I redirect a subdirectory and all files in it to the root using htaccess?
snippet in htaccess

How do I redirect a subdirectory and all files in it to the root using htaccess?

user519

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^name-of-subfolder/.*$ / [R=302]
</IfModule>