Kamis, 05 Februari 2015

Menghilangkan index.php pada url codeigniter di web server centos 6.5

,
Secara default URL codeigniter akan tampil "domain/index.php/controller", agar lebih enak dilihat (menurut pendapat saya saja sih) perlu menghilangkan "index.php" di URL tersebut. Berikut langkah-langkahnya. masuk ke dirctory website secara default "/var/www/html/" buka "application/config/config.php". Update code $config['index_page'] = 'index.php'; menjadi $config['index_page'] = '';  (hilangkan index.php). Buat file .htaccess di root directory website (bukan root directory server), didalam file .htaccess  masukan script berikut : # .htaccess file RewriteEngine On # Removes...
Read more →