Kalo web kita make .htaccess trus apache belom di
setting untuk enable mod_rewrite bakal muncul error kek gini, manteman.
Server error!
The server encountered an internal error
and was unable to complete your request. Either the server is overloaded or there
was an error in a CGI script.
Error 500
localhost
06/11/16 08:19:53
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6
06/11/16 08:19:53
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6
Nah untuk perbaikannya step-stepnya kek gini:
1. Cari httpd.conf di folder apache, trus cari script kaya gini :
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
dan pastikan AllowOverride dalam keadaan All, bukan None atau lainnya.
2. Lalu cek Load modulenya dengan search "mod_rewrite.so" dan ubah dari
#LoadModule rewrite_module modules/mod_rewrite.so
Jadi
LoadModule rewrite_module modules/mod_rewrite.so
Lalu restart Apache melalui Xampp atau apachenya sendiri, ato bila perlu restart PC nya, biar puas. Dan tada, website make .htaccess sudah bisa digunakan.
Tidak ada komentar:
Posting Komentar