It’s really weird for me. I have created a custom “class LanguageUrlRule extends CBaseUrlRule”. It has two functions createUrl and parseUrl. The class successfully parses the following type of URLs: site/ru/ky/phrase using the following regular expression.
if (preg_match('%^site/(\w+)(/(\w+)(/(.+)(/)?)?)?$%', $pathInfo, $matches))
However, for some unknown reasons $_GET is empty when URL has ajax param like site/ru/ky/phrase?ajax=ajax. Why?
If I look into the value of $request->_requestUri, it has a correct full data like “/site/ky/ru/phrase?ajax=ajax”. So why $_GET isn’t getting populated?
I really need your help. Please.
P.S. Interesting thing is on my localhost, $_GET is populated, on production server on Amazon EC2, $_GET isn’t populated.