BLOG

A LITTLE STORY ABOUT MY JOURNEY

Hide index.php from url Codeigniter

We are going to hide index.php from url. So we need some steps like :

First enable rewrite mode on your server apache2

[code] sudo a2enmode rewrite [/code]

Creeate .htacess file in root directory

Change some steps on .htacess file like :

 

we also need to modify the $config[‘index_page’] variable like this:

 

1304 Total Views 2 Views Today