rewrite rule works in apache but not htaccess
I have a customer who is trying to use the following rewrite rules in a htaccess file but they give an internal server error message. It appears that some of the commands can only be used in directly in the httpd.conf file and not within a .htaccess because I get an internal error when trying to run it in a .htaccess and it works fine in apache.The problem is, that I am running H-Sphere which does not allow you to modify the http configuration files for individual customers (it will be over written). Is there any way I can make the below work in a htaccess?
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule ^/(.*) http://www.domain.com/$1 [L,R=301]
RewriteLog "/hsphere/local/home/user/rewrite.log"
RewriteLogLevel 3
RewriteMap esc int:unescape
RewriteMap seourltarg prg:/hsphere/local/home/user/rewritehelper.pl