CodeIgniter

From A2Wiki

Jump to: navigation, search

CodeIgniter does work, but takes a little special configuration.

index.php url rewrite

This takes just a little trickery. Instead of using the .htaccess content shown in the user guide, use this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]

Also, in your config.php file, set your uri_protocol to 'REQUEST_URI'. Finally, don't forget to change your index_page to ""!

Database

The hostnames for your database should be 'localhost'.

Logs

In at least one installation of CodeIgniter, leaving the logs directory as unwritable by the web user resulted in ZERO output to the browser.


Last updated for CodeIgniter 1.6.1.

Personal tools