Pretty URLS With Code Igniter & Mod Rewrite
Code Igniter does a pretty good job of creating pretty urls by default. The basic Code Ignitor address will look like this:
http://www.example.com/index.php/controller/method/parameter
What we want to do is get that index.php out of there. We’ll accomplish this by creating an .htaccess file in our root directory and use it to rewrite the address with Apache’s Mod Rewrite Engine.
(more…)