Home > apache > Apache error log: Invalid command ‘RewriteEngine’

Apache error log: Invalid command ‘RewriteEngine’

After adding the “RewriteEngine on”  on an .htaccess file, I got the following error in apache’s error.log:


.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

To fix it, I’ve added the rewrite module to apache:


$ sudo a2enmod rewrite

$ sudo /etc/init.d/apache2 restart

 

About these ads
Categories: apache Tags: , ,
  1. Vyacheslav
    December 29, 2013 at 4:55 | #1

    Thank you!

  2. amdholic
    November 16, 2013 at 0:42 | #2

    It works. Thanks for ur help…. :)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 29 other followers

%d bloggers like this: