enable the apache mod_rewrite module ubuntu code example Example: apache enable mod reqrite sudo a2enmod rewrite sudo service apache2 restart