Try this rule:
RewriteEngine On
RewriteRule ^profile/.*$ / [L,R=301,NC]
This will redirect every /profile/*
request to your home path /
with R=301 (permanent redirect) thus taking care of your SEO ranking.
Reference: Apache mod_rewrite Introduction
UPDATE: Using RedirectMatch
:
RedirectMatch 301 ^/profile/ /