Showing posts with label rewrite engine error in ubuntu. Show all posts
Showing posts with label rewrite engine error in ubuntu. Show all posts

Saturday, September 28, 2013

Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed.

Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed. The Apache error log may have more information....fail!

Ubuntu - Apache2 error

If you are getting this error, it means you have used rewrite engine in your script but rewrite module is disabled right now.

To solve this error, just enable the rewrite module.

If you are using ubuntu - apache2, run this command in terminal
# sudo a2enmod rewrite # service apache2 restart
Now try again.

If you are getting this error in RHEL/CentOS or in LAMPP, click here.