Apache mod_rewrite on Ubuntu
Install Mod Rewrite
sudo a2enmod rewrite
sudo service apache2 restart
Then allow rewriting in sites-enabled/000-default or any other apache site file.
<Directory /home/www-data/juacompe.com>
Options FollowSymLinks MultiViews +ExecCGI -Indexes
#Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ref: http://www.lavluda.com/2007/07/15/how-to-enable-mod_rewrite-in-apache22-debian/