[wikka-community] Lighttpd Rewrites

Brian Koontz brian
Wed Apr 14 21:18:12 GMT 2010


On Wed, Apr 14, 2010 at 01:04:46PM -0600, Mike Shultz wrote:
> I was fooling around trying to get Wikka running on lighttpd and noticed
> that the documentation isn't totally correct for the rewrites.  This is
> the page in question:
> 
> http://docs.wikkawiki.org/LighttpdConfig
> 
> The rewrite rules don't take into account additional plugins, templates,
> the ability to call wikka.php directly, or the fact that some URLs will
> have additional GET vars.
> 
> I was going to update the docs but ran into the invitation code barrier.
>  Here are the rules that worked for me with 1.2-p1:
> 
> url.rewrite-once = (
>         "^(/wikka\.php.*)$" => "$1",
>         "^(/templates/.*)$" => "$1",
>         "^(/3rdparty/plugins/.*)$" => "$1",
>         "^(.*)\?(.*)$" => "wikka.php?wakka=$1&$2",
>         "^(.*)" => "wikka.php?wakka=$1"
> )

I'll update this, thanks for sharing this!

  --Brian

-- 
Brian Koontz
Wikka Development Team
Systems Support and Random Tasking Dept.




More information about the community mailing list