Selasa, 26 Agustus 2014

Don't Walk Behind Me

Don't walk behind me, I may not lead. 
Don't walk in front of me, I may not follow. 
Just walk beside me and be my friend

A friend is someone who knows all about you and still loves you
Good friends, good books, and a sleepy conscience: this is the ideal life
It is not a lack of love, but a lack of friendship that makes unhappy marriages
If you live to be a hundred, I want to live to be a hundred minus one day 
so I never have to live without you

Kamis, 06 Maret 2014

Remove index.php From URL - CodeIgniter

Setelah sekian lama, akhirnya dapet kerjaan pake CI --lagi--. hiks hiks.. *terharu
Tapi jadinya banyak yang lupa :D. sampe2, cukup lama juga muter2 nyari 'beberapa' halaman yang jadi 'Not Found' dilocal, update dari SVN ok, no conflict but why in my local it doest work?
yak cek bebicek url dan config, base url dan index nya. sudah yakin bener donk, tapi mengapa masih Not Found?? akhirnya curiga sama index pagenya. dan bener aja -__-

jadi begini pemirsah, untuk ngilangin index.php di CI anda cukup masukin beberapa baris script di file .htaccess
jangan lupa .htaccessnya disimpan di rootnya yaa.. alias satu direktory sama folder system dan application.
here is the script you should put in your .htaccess :

# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn’t true it sends the
# request to index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

dan jangan lupa untuk kosongkan $config['index_page'] = ''; pada file config.php anda.
selamat mencoba ^^