Last active
November 4, 2019 01:56
-
-
Save egin10/5b8d17141079bb1c5eaaef95023eedeb to your computer and use it in GitHub Desktop.
Mengilangkan index.php pada CodeIgniter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//put this in root directory of project | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php/$1 [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Edit file config.php | |
//before | |
$config['index_page'] = 'index.php'; | |
//after | |
$config['index_page'] = ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment