Pertama pastikan bahwa konfigurasi htaccess dari apache sudah aktif.
1
2
3
| <directory> AllowOverride All</directory> |
Selanjutnya buat file dengan nama
.htaccess yang isinya adalah sebagai berikut:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| <ifmodule mod_rewrite.c=""> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?baseurl=$1 [QSA,L]</ifmodule><ifmodule !mod_rewrite.c=""> ErrorDocument 404 /index.php</ifmodule> |
Anda sedang membaca artikel berjudul 
0 comments:
Post a Comment