Search code examples
url-rewritingquery-stringlighttpdfriendly-url

how to lighttpd redirect with querystring


Following url is working fine:

http://www.domain.com/address

but when I pass any querystring like:

http://www.domain.com/address?back=order-opc.php?step=1

It shows 404 page

my rewrite:

"^/address" => "/address.php",

i have tried so many different rewrite nothing seems to work... how should i rewrite ?


Solution

  • You should take in count the rest of the query string in your rule.

    "^/address(\?.*)?" => "/address.php$1",