Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Phalcon get parameters are not working with lighttpd

this is my Lighttpd config file for phalcon

$HTTP["host"] == "www.phalcon.dev" { server.document-root = "C:\devtools\lighttpd\htdocs\phalcon\test\public" url.rewrite-if-not-file = ( "^/(.*)$" => "index.php?_url=/$1" ) }

Urls are working fine but I am unable to get the parameters after ?

www.phalcon.dev/test/mymethod - is working www.phalcon.dev/test/mymethod?var=1 - not working showing 404 error

I think there is problem in lighttpd config rewrite but I am unable to figure it out. Please Help



7.2k
Accepted
answer

this rewrite rule works

"^/([^.?]*)\?(.*)$" =>  "/index.php?_url=/$1&$2",
"^/([^.?]*)$"       =>  "/index.php?_url=/$1"

Thanks it worked !!