Removing index.php in codeigniter

Hey Folks, most of the new CodeIgniter developers face a problem to remove index.php from the URL. It’s pretty simple.

Just write the following code in notepad and save as .htaccess. Put this file in the root folder where application, system folders are.

.htaccess code:

or in MAMP

And of course, make sure mod_rewrite is enabled in your server.

Cheers

Leave a Reply

%d bloggers like this: