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

[Sat Feb 12 10:58:38 2011] [alert] [client 127.0.0.1]
/home/g3n1k/www/website/.htaccess:
Invalid command 'RewriteEngine',
perhaps misspelled or defined by a module not included in the server configuration

permasalahannya adalah ( ubuntu ) tidak diloadnya rewrite modul pada path

/etc/apache2/mods-enabled

sementara konfigurasinya berada pada path

/etc/apache2/mods-available

 

solved

berikan link  rewrite.load pada folder mods-enabled ke mods-available

$sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled

lalu lakukan restart server apache

$sudo /etc/init.d/apache2 restart

hasil dari perintah diatas adalah link untuk  load module rewrite.load file

berhasil tidak menampilkan pesan error mod rewrite lagi


untuk centos gunakan perintah

# vi /etc/httpd/conf/httpd.conf
 LoadModule rewrite_module modules/mod_rewrite.so

 # service httpd restart

Published by

G3n1k

just to remember what i had known :)

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