Fancy URLs

What Do They Do? If your web host supports Mod_Rewrite, you have the option of enabling Fancy URLs. Fancy URLs allows you to access your website pages at a URL like http://yoursite.com/controller/function/arg1/arg2 instead of http://yoursite.com/index.php/controller/function/arg1/arg2 Essentially, Fancy URLs permit to remove the index.php portion from the URL.

Enable It Open up application/configureation/config.php and find the two lines towards the top of the file that look like this:

config.php

// Does Application Use Mod_Rewrite URLs?
define("MOD_REWRITE",FALSE);
//Set MOD_REWITE to TRUE.

The .htaccess The code inside htaccess basically tells your server to transparently (you can't see it) add the index.php portion onto the beginning of the URL, unless you are requesting index.php or something in the images, javascript and css (as img js and css) folder.


Go back to Documentation.