I have a file name that looks like this that I wanted to redirect to the root however it's giving 500 error messages.
RewriteRule ^foldername1/foldername2\ kw1\ kw2\.html$
http://www.example.com/oldfoldername2-kw1-kw2-kw3.html [R=301,L]
Can someone tell me what's wrong with the coding?