I uploaded the .htaccess to the server and received an Error 500 (Internal Server Error).
And in the error log I had the following error:
Let's say your DOCUMENT_ROOT is /home/foo/web then have this config in your httpd.conf file:
/home/foo/web
Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all
This should take care of RewriteEngine is not allowed error you're getting.
RewriteEngine is not allowed