ilmu-linux.com

Network & Linux opensource

 

Menghilangkan index.php CI di webhosting

 

PHP Code Ignitier

Tutorial ini di gunakan untuk hosting di 000webhost.com:

  1. buka file config.php pada folder CI Anda (application\config\), cari kode dibawah:
  2. $config['index_page'] = "index.php";
    Hilangkan index.php, jadi:
    $config['index_page'] = "";
    save file tersebut.
  3. Lalu edit file .htaccess pada root direktori Anda (sejajar dengan folder system, file index.php, dan license), dan masukan kode dibawah kedalam file .htaccess

              sehingga menjadi

           # Do not remove this line, otherwise mod_rewrite rules will stop working
           

               RewriteBase/

               RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f

               RewriteCond %{REQUEST_FILENAME} !-d

               RewriteRule ^(.*)$ index.php/$1 [L]


    Ok beres, sekarang coba url halaman kalian tanpa index.php (http://ilmu-linux.com.com/blog), lihat screenshot aplikasi punya saya:

Responses (1) to "Menghilangkan index.php CI di webhosting"

  1.  

    One of a cind!

Leave a reply

Feel free to share your thoughts about this entry.

Nickname
Email
Website
Confirmation image
Confirmation code
Comment