Let’s start the discussion about .htaccess: Invalid command ‘RewriteEngine’ in following methods.
Invalid command ‘RewriteEngine’
Simply add the LoadModule rewrite module modules/mod rewrite.so line if it is missing from the httpd.conf file.
Run the below command to solve the issue.
a2enmod rewrite systemctl restart apache2
I hope the strategies listed above work for you. Happy coding and come back again.
Similar Post : gatsby starter hello world cli github