Recently used Symfony framework to the mobile phone app backstage, found in China Mobile Cmwap network problems, all requests are routed to the root path
The image on the left is the original $_server object, and the image on the right is the $request->server object
Because Request_uri is changed, any request will be routed to the root path by the Symfony framework
and one less x-original-url request header.
Reason in the request class source code of Symfony
Can see when there is X-original-url request the head of the time to take it directly when Request-uri, but China Mobile cmwap more disgusting people, passed this head but did not pass right, now the code changed to
There is also the framework of the startup file Bootstrap.php.cache, which also has this code, the same changed to do it.
Symfony Framework in China Mobile Cmwap network access problem