UseBB contains a .htaccess file containing URL rewrite directives for Apache's mod_rewrite.

Today I tested LightTPD with PHP and its own mod_rewrite. For UseBB's friendly URL's to work with LightTPD, you need to add the following to lighttpd.conf:

url.rewrite-final = (
"/UseBB/(index|panel|faq|search|active|online|members|rss|stats)\.html?[\.,;\-]?$" => "/UseBB/$1.php",
"/UseBB/index-([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/index.php?cat=$1",
"/UseBB/panel-(login|logout|register|sendpwd|editprofile|editoptions|editpwd|subscriptions)\.html?[\.,;\-]?$" => "/UseBB/panel.php?act=$1",
"/UseBB/panel-al(0|1)\.html?[\.,;\-]?$" => "/UseBB/panel.php?al=$1",
"/UseBB/panel-activate-([0-9]+)-([0-9a-zA-Z]+)\.html?[\.,;\-]?$" => "/UseBB/panel.php?act=activate&id=$1&key=$2",
"/UseBB/panel-markallasread\.html?[\.,;\-]?$" => "/UseBB/panel.php?do=markallasread",
"/UseBB/(forum|topic|profile|mail)-([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/$1.php?id=$2",
"/UseBB/(forum|topic)-([0-9]+)-([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/$1.php?id=$2&page=$3",
"/UseBB/topic-([0-9]+)-((un)?subscribe)\.html?[\.,;\-]?$" => "/UseBB/topic.php?id=$1&act=$2",
"/UseBB/topic-([0-9]+)-getnewpost\.html?[\.,;\-]?$" => "/UseBB/topic.php?id=$1&act=getnewpost",
"/UseBB/topic-post([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/topic.php?post=$1",
"/UseBB/post-(forum|topic)([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/post.php?$1=$2",
"/UseBB/post-topic([0-9]+)-quotepost([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/post.php?topic=$1&quotepost=$2",
"/UseBB/edit-post([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/edit.php?post=$1",
"/UseBB/edit-post([0-9]+)-delete\.html?[\.,;\-]?$" => "/UseBB/edit.php?post=$1&act=delete",
"/UseBB/edit-topic([0-9]+)-(delete|trash|move|lock|sticky|unlock|unsticky)\.html?[\.,;\-]?$" => "/UseBB/edit.php?topic=$1&act=$2",
"/UseBB/online-([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/online.php?page=$1",
"/UseBB/members-staff\.html?[\.,;\-]?$" => "/UseBB/members.php?act=staff",
"/UseBB/faq-([0-9a-zA-Z]{5})\.html?[\.,;\-]?$" => "/UseBB/faq.php?q=$1",
"/UseBB/search-results\.html?[\.,;\-]?$" => "/UseBB/search.php?act=results",
"/UseBB/search-results-([0-9]+)\.html?[\.,;\-]?$" => "/UseBB/search.php?act=results&page=$1",
"/UseBB/rss\.xml[\.,;\-]?$" => "/UseBB/rss.php"
)


Eventually, you will need to edit the pathname (/UseBB) to fit with your website. Also, make sure the mod_rewrite module is being loaded (in the server.modules array).

A directory specific solution like Apache's .htaccess does not yet exist for LightTPD.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog