Invalid command 'RewriteEngine', perhaps code example Example: Invalid command 'RewriteEngine' a2enmod rewrite systemctl restart apache2