404 page when language code is in url eg. http://example.com/en
Created 7 years ago by lckamalI have setup pyrocms in a demo server. when there is language in url it shows 404 page. http://almidan.go-demo.com/en
any idea?
ryanthompson
—
7 years ago
Hard saying but this is where that stuff is taking place if you'd like to debug a little. I can help you if you can gather a bit more behavior / information about it: https://github.com/anomalylabs/streams-platform/blob/1.1/src/Http/Kernel.php#L84
lckamal
—
7 years ago
It looks like none of the condition to define LOCALE is matched on Kernel.php. In my localhost it matched on this condition if (($hint === 'uri' || $hint === true) && preg_match($pattern, $uri, $matches)) { ... }
When I change $uri = $_SERVER['REQUEST_URI'];
it works though
What locales do you have enabled? Might have something to do with the hint being present AND the subdomain.. not sure though right now.