Skip to main content

Gimana Cara Menhghilangkan Index.Php

July 25, 2011 by rahmanep

rahmanep's picture

Assalamu'alaikum Para master
saya newbie di CI mau tanya gimana cara menghilangkan index.php
mohon bantuan master semua
terimakasih

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

dan kalau mau ditambahkan

July 25, 2011 by gangsar, 9 weeks 20 hours ago
Comment: 8718

gangsar's picture

dan kalau mau ditambahkan folder `pengecualiannya` (lihat klausa

!^(index\.php|images|robots\.txt

di .htaccessnya), misal: kamu punya folder js, stylesheets, dan fonts. Kamu harus menambahkan js, stylesheets, dan fonts itu di dalam klausa `pengecualian` tersebut, seperti ini:

!^(index\.php|images|stylesheets|js|fonts|robots\.txt)

semoga membantu...

coba baca di

July 25, 2011 by gangsar, 9 weeks 20 hours ago
Comment: 8717

gangsar's picture

coba baca di user_guide/general/urls.html di user guidenya deh:
Silahkan diartikan sendiri.

Removing the index.php file

By default, the index.php file will be included in your URLs:
example.com/index.php/news/article/my_article

You can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the "negative" method in which everything is redirected except the specified items:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

In the above example, any HTTP request other than those for index.php, images, and robots.txt is treated as a request for your index.php file.

jangan lupa pelajari

July 25, 2011 by arvernester, 9 weeks 1 day ago
Comment: 8715

arvernester's picture

jangan lupa pelajari .htaccess codeigniter untuk mod rewrite.
untuk lebih jelas silakan baca di wikinya, di http://codeigniter.com/wiki/mod_rewrite/

Cara hilangkan index.php

July 25, 2011 by asrid5313, 9 weeks 1 day ago
Comment: 8710

asrid5313's picture

coba edit file application/config/config.php

.
.
.
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "index.php";//ini yg diedit
.
.
.

Premium Drupal Themes by Adaptivethemes