Menghilangkan index.php di URL Code Igniter

Cara Menghilang kan index.php pada URL CodeIgiter agar url tampak lebih menarik :

1. Aktifkan mod_rewrite.so pada httpd.conf apache

2. hilang kan index.php pada $config[‘base_url’] di config.php codeigniter

3. Buat file .htaccess filenya seperti dibawah ini

pada baris ke 3  (/hello/index.php) disesuaikan dengan PATH root Folder aplikasi miasal di htdoc/hello/

4. simpan file .htaccess didalam root folder aplikasi :

5. kemudian restart Apace server

6. dan panggil url tanpa index.php

Iklan

3 thoughts on “Menghilangkan index.php di URL Code Igniter

  1. kok muncul error gini ya

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, postmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 Server at localhost Port 80

    saya pakek xampp 1.7.4

    folder ci di => htdoc/hukum

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

w

Connecting to %s