Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
568 views
in Q2A Core by

I use Lighttpd as web server for Q2A. Lighttpd has a slightly different syntax for URL rewriting.

Has anybody yet a complete set of Lighttpd rewrite rules?

Q2A version: 1.4.3

1 Answer

0 votes
by
$HTTP["host"] =~ "(^|\.)yourdomain\.com$" {
    url.rewrite-once = (
        "^(.*)\.(jpg|png|js|css|html|htm|txt)(.*)$" => "$0",
        "^(.+)$" => "index.php?qa-rewrite=$1"
    )
}
It is working fine so far for me.  It may not work that well if you are using Q2A as part of another bigger website, though.
...