Dzisiejszy wpis poświęcony jest integracji frameworka KohanaPHP z serwerem LightTPD w taki sposób, aby ukryć adres index.php. Tzw. ładne linki, czy nice urls są bardzo ważne pod względem optymalizacji strony internetowej pod wyszukiwarki.
Plik lighttpd.conf:
$HTTP["host"] =~ "^(www\.|)nowaker\.net$" {
simple-vhost.server-root = "/home/www/nowaker.net/html"
accesslog.filename = "/home/www/nowaker.net/logs/access.log"
url.rewrite-once = ("^/(.*)$" => "index.php/$1")
}
Plik application/config/config.php:
[...]$config['index_page'] = ''; [...]
Prawda, że proste? ;)


0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment