Lakukan perubahan pada config httpd.conf
# nano /etc/httpd/conf/httpd.conf
1. ubah
AllowOverride None
menjadi
AllowOverride All
2. ubah
<Files “.ht*”>
Require all denied
</Files>
<Files ~ “^\.ht”>
Order allow,deny
Deny from all
Satisfy All
</Files>
3. tambahkan
#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
4. tambahkan
LoadModule speling_module modules/mod_speling.so
5. lakukan restart
# service httpd restart
6. tambahkan di folder
# nano .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Leave a comment