.htaccess 301 redirect path and all child-paths
snippet in htaccess

.htaccess 301 redirect path and all child-paths

user6928

RewriteEngine on
RewriteRule ^docs$ http://www.domain.com/ [R=301,L,QSA]
RewriteRule ^docs/(.*) http://www.domain.com/$1 [R=301,L,QSA]