Clear, usable interfaces. Clean, accessible code.

Route 19

Logbook.

CodeIgniter URLs & Lighttpd Feb. 19 at 10:41 am

Getting CodeIgniter to use friendly URIs with Lighttpd couldn’t be simpler, thanks to an article by Michael Wales.

Make your CI domain send errors to index.php in your lighttpd.conf:
$HTTP["host"] == "route19.com" { server.error-handler-404 = "/index.php" }

Make CI use the REQUEST_URI for uri_protocol in config/config.php:
$config['uri_protocol'] = "REQUEST_URI";

View original article

Recent Entries

More