invalid command rewriteengine code example Example: Invalid command 'RewriteEngine' a2enmod rewrite systemctl restart apache2