My body is empty in lighthttpd if i use rewrite.
I just want to rewrite everything to index.php except images and css.
I have the following:
url.rewrite-if-not-file = ( "^/(.*)" => "/index.php" )
I cannot post the entire lighthttpd configuration because stackoverflow will not let me.Here is the link: https://pastebin.com/aku217CN
However when i try to get the raw body via file_get_contents('php://input')
it comes up as null.
However when i try to go to the default mywebsite/index.php, the body is filled up.
It seems this was related to the php flight which runs on lighthttpd latest version.
Once you read the body, with file_get_contents('php://input') yuou cannot read it a second time.
I had a sort of filter that read the body and put it in a log.
NEeds closed.