Code Igniter

10 04 2011

jeh lama lama stress kepala pakai CodeIgniter 2.0.1 neh

bagi yang kesusahan tuk membuang index.php
http://localhost/ci/index.php/blog
jadi
http://localhost/ci2/blog
bisa membuat file .htaccess yang letaknya di http://localhost/ci2/.htaccess


RewriteEngine On
RewriteBase /ci2/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
ErrorDocument 404 /index.php

perhatikan baris dua
RewriteBase /ci2/
ci2 sesuaikan dengan nama folder mu yah hehehehehehe
eit jangan lupa tuk merubah settingan
application/config.php yang sebelumnya
$config['index_page'] = 'index.php';
menjadi

$config['index_page'] = '';

next kita coba buat hello world

Advertisements

Actions

Information

2 responses

11 04 2011
D!@N

ada yang menarik tentang hello world. bisa saja terjadi padamu kelak hehehe cekidot http://www.ariel.com.au/jokes/The_Evolution_of_a_Programmer.html

11 04 2011
cangak

ke TKP, thanks inpo, walaupun ndak tau, menyesatkan atau malah menggelapkan

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: