August 2016

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

Step 2 :

Remove index.php in codeigniter config

Step 3 :

Allow overriding htaccess in Apache Configuration (Command)

and edit the file & change to

for www folder

Step 4 :

Enabled apache mod rewrite (Command)

Step 5 :

Restart Apache (Command)

Source […]