Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

LigHTTPD

Shish edited this page Sep 5, 2013 · 1 revision
# Example lighttpd config snippet for enabling Pretty URLs.
# You'll probably want to wrap this in a $HTTP["host"] block, so that it only
# applies to the host that you're running Shimmie on.

server.modules += ("mod_rewrite")

url.rewrite-repeat = (
	"^/_images/([0-9a-f]{2})([0-9a-f]{30}).*" => "images/$1/$1$2",
	"^/_thumbs/([0-9a-f]{2})([0-9a-f]{30}).*" => "thumbs/$1/$1$2"
)

url.rewrite-if-not-file = (
	"^([^\?]+)(\?(.*))?" => "/index.php?q=$1&$3"
)
Clone this wiki locally