Is not working anymore. It seems to be a behaviour change since Yii 1.0.1. CHttpRequest uses $_SERVER['REQUEST_URI'] now in favour of $_SERVER['PATH_INFO'].
Unfortunately is REQUEST_URI not modified by the rewrite rule, so now Yii tries to find a non-existent controller (es for example). So far I could not find a solution.
Yes, that's the change introduced in 1.0.1. The reason is that PATH_INFO is not always reliable. Could you please post your $_SERVER content and the requested URL?
A simple fix is in your index.php, add the following line before running app:
$_SERVER['REQUEST_URI']=$_SERVER['PATH_INFO'];
The current implementation (v1.0.1) is close to what ZF is doing, which I think is better than our earlier implementation (v1.0.0). But still, there may be situations like yours occur.
Yes, rewriting rules are really tricky because they could easily turn down the default behavior of frameworks. We will see if there's any other reports about this problem and check if we could provide a better solution.
I'd like to see the built-in support for redirect rules as I think it's quite common to use them for SEO purposes. In some cases it's better to use paths instead of query parameters - search engines like that.
Ok, if you have a rewrite rule like in the first post, then what would you do without using a workaround (assigning path_info to request_uri)? My point is to have embedded framework support so there is no need in any workarounds.