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 […]

Angular.js How to remove hash from url?


.htaccess file in root directory:

In this mode you can use links without the # in HTML files

Link in Browser:

Source: http://stackoverflow.com/questions/16677528/location-switching-between-html5-and-hashbang-mode-link-rewriting […]