From b46331484dd61053aadaa486be59dc6872030244 Mon Sep 17 00:00:00 2001 From: Robert Reinhard Date: Thu, 31 Oct 2013 11:08:07 -0700 Subject: [PATCH] Adding an example of using `rewrite-if-not-file` Inspired by this thread: http://forums.laravel.io/viewtopic.php?id=465. Docs here: http://redmine.lighttpd.net/projects/1/wiki/Docs_ModRewrite#urlrewrite-repeat-if-not-file --- lighttpd.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lighttpd.conf b/lighttpd.conf index fef88ae..5eb62ea 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -9,4 +9,7 @@ $HTTP["host"] =~ "example.com$" { "^/(favicon\.ico|robots\.txt|sitemap\.xml)$" => "$0", "^/[^\?]*(\?.*)?$" => "index.php/$1" ) + + # Use this, instead of the above, if running Lighttpd >= 1.4.24 + # url.rewrite-if-not-file = ( "^/[^\?]*(\?.*)?$" => "index.php/$1" ) }