I'm trying to configure Nginx on a new server. I have a number of PHP scripts (f.e. /test/test.php) and I want to use this scripts "as is" (default language, English), as well as with language redirecting. Example - when "/de/test/test.php" is requested,
- nginx writes a cookie (lang=de)
- and returns "/test/test.php" (without modifying URI, so that visitor remains on "/de/test/test.php"
Any help is greatly appreciated! I already lost several nights fighting with this, and I'm getting desperate enough to cancel new server and return back to shared hosting.