How to remove index.php from codeigniter in UBUNTU?

This tutorial will show you that how to remove index.php from codeigniter in UBUNTU or how to enable url rewriting.

Step 1 :

Add this in htaccess file

Loading...

Step 2 :

Remove index.php in codeigniter config

Loading...

Step 3 :

Allow overriding htaccess in Apache Configuration (Command)

 

Loading...

and edit the file & change to

Loading...

for www folder

Step 4 :

Enabled apache mod rewrite (Command)

Loading...

Step 5 :

Restart Apache (Command)

Loading...

Source