If we got the message show as as below, we may not enablye the apache rewrite function.
To enable this function we should modify the httpd.conf.
Add these command line in the virual host block
To save the httpd.conf and Restart the apache.
when you wirte the .htaccess file without errors, and
your will get the rewrite function.
if not, you man find out the issue from the log.