langsung saja
cari lokasi file mod_rewrite.so
locate mod_rewrite.so
dan letaknya di
/usr/lib/apache2/modules/mod_rewrite.so
selanjutnya masuk ke direktori mods-enabled
cd /etc/apache2/mods-enabled
buat file rewrite.load
nano rewrite.load
masukan code berikut
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
selanjutnya edit file
/etc/apache2/sites-available/default
nano /etc/apache2/sites-available/default
cari code None
Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all
ubah menjadi all
Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all
simpan kemudian restart apache
/etc/init.d/apache2 restart
selesai..
source