Search code examples
regexapacheurl-rewritinglighttpd

rewrite lighthttpd QSA


Help rewrite flag apache - QSA for lighttpd. Now available:

RewriteRule ^([^?]*) index.php?_route_=$1 [L, QSA]

Try the case, but is not functioning properly:

url.rewrite-if-not-file = ("^/(?:\?(.*))?" => "/index.php?_route_=$1")

Solution

  • From what I understand of lighttpd:

    url.rewrite-if-not-file = ("^/([^\?]*)$" => "/index.php?_route_=$1")
    

    .. should work. If not, then the following will:

    url.rewrite-if-not-file = ("^([^\?]*)$" => "/index.php?_route_=$1")