site map

Parkside Web Development

Read... Write... Share...

July 14, 2008

Pretty URLS With Code Igniter & Mod Rewrite

Filed under: Developing the WebThe Quagmire @ 6:43 am

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…)

Share/Save/Bookmark