how to enable htaccess in apache ubuntu 18.04 code example Example: apache enable mod reqrite sudo a2enmod rewrite sudo service apache2 restart