I run
Gallery2 on my server, and it's a nice piece of software. It has a strange rewrite system that doesn't translate well to Abyss.
Someone converted this weird system to one that works with lighttpd, and happily that rewrite is much more like the regular apache mod_rewrite rules that we need for Abyss.
You can find the lighttpd page
here, but for convenience I've included a more Abyss-friendly list below.
The first line is the regexp, the second is the redirect-to path.
For every rule I turned off 'case sensitive', and the Next Action is always 'stop'. All other settings are left as default.
^/(.*)/Rewrite.txt$
/$1/Works.txt
^/gallery2/v/(\?.+|\ .)?$
/gallery2/main.php?g2_view=core.ShowItem
^/gallery2/admin[/?]*(.*)$
/gallery2/main.php?g2_view=core.SiteAdmin&$1
^/gallery2/d/([0-9]+)-([0-9]+)/([^\/]+)(\?|\ )?(.*)$ =>
^/gallery/d/([0-9]+)-([0-9]+)/([^\/]+)(\?|\ )?(.*)$
/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=$1&g2_serialNumber=$2&$3
^/gallery/v/([^?]+)/slideshow.html
/gallery/main.php?g2_view=slideshow.Slideshow&g2_path=$1
^/gallery/v/([^?]+)(\?|\ )?(.*)$
/gallery/main.php?g2_view=core.ShowItem&g2_path=$1&$3
^/gallery/c/add/([0-9]+).html
/gallery/main.php?g2_view=comment.AddComment&g2_itemId=$1
^/gallery/c/view/([0-9]+).html
/gallery/main.php?g2_view=comment.ShowAllComments&g2_itemId=$1
^/gallery/p/(.+)
/gallery/main.php?g2_controller=permalinks.Redirect&g2_filename=$1