I have this error when trying to browse php files locally
[Fri Apr 13 19:16:40 2012] [alert] [client 127.0.0.1] C:/AppServ/www/hr-website/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://127.0.0.1/
what is the problem ?
Check to make sure you have
mod_rewriteenabled.From: https://webdevdoor.com/php/mod_rewrite-windows-apache-url-rewriting
If the
LoadModule rewrite_module modules/mod_rewrite.soline is missing from the httpd.conf file entirely, just add it.Sample command
To enable the module in a standard ubuntu do this: