Wednesday, October 7, 2015

Mengaktifkan mod_rewrite Apache di CentOs 5.8

1. Buka config httpd dengan editor pada direktori /etc/httpd/conf/httpd.conf
# vi /etc/httpd/conf/httpd.conf


2. Pastikan modul rewrite aktif (tidak ada tanda # di awal baris) dengan memeriksa baris berikut
LoadModule rewrite_module modules/mod_rewrite.so

3. Scroll ke bawah, dan cari bagian <Directory "/var/www/html"> lalu ganti
AllowOverride None
    Menjadi
AllowOverride All

4. Simpan file hasil perubahan.

5. Restart apache/httpd dengan perintah
service httpd restart

No comments:

Post a Comment