SOLVED , How to Remove index.php with htaccess in Codeigniter (most easiest way)

I've just found the easiest way to remove index.php by using .htaccess file in codeigniter. The solution actually already mentioned  in userguide

1. Make sure the mod_rewrite has enabled in your server (httpd.conf)

2. create .htaccess in root , and copy the script from user_guide (general) as mention bellowed

RewriteEngine On  RewriteCond %{REQUEST_FILENAME} !-f  RewriteCond %{REQUEST_FILENAME} !-d  RewriteRule ^(.*)$ index.php/$1 [L]

edit line 4 ...

RewriteRule ^(.*)$ yourSiteRootolder/index.php/$1 [L]

Save the file

That's it...

Certified IT Trainer
 Call/ SMS/WA :  081.223344.506
 Blog :
 Social Net :
Hometown : Bandung – Jawa Barat
Please consider your environmental responsibility. Before printing this e-mail message, ask yourself whether you really need a hard copy.

Hery Purnama – 081.223344.506 –
Freelance IT Trainer, Trainer Excel VBA Macro, Trainer Sencha ExtJS, Trainer Google Map API, Trainer SPSS, Trainer MS Project, Trainer Primavera, Trainer Google Sktechup 3D, Trainer Android Phonegap, Trainer Oracle, Trainer SQL Server, Trainer MySQL, Trainer PHP Jquery Mobile , Trainer Java, Trainer HTML5 Javascript, Trainer SEO Internet Marketing, Trainer Project Management, Trainer SMS Gateway, Trainer CMS WordPress, ITIL, COBIT

Author: Inhouse Trainer freelance

Hery Purnama 081.223344.506 - Freelance Trainer , Excel VBA Macro, Android, Phonegap, ITIL, COBIT, Google Map API, Sketchup3D , MS Project, Sencha ExtJS, Oracle , MySQL DBA, MS. Access VBA, Primavera P6, MS Project ,Jquery, Yii, CodeIgniter. laravel, CATIA 3D, Unity 5 , PMBOK, PMO, TOGAF, PRINCE2 - Call : 081.223344.506 | PinBB : 7DC633AA| Email / YM : | FB : inhousetrainer | TW : inhousetrainer

Leave a Reply

Your email address will not be published. Required fields are marked *