CUrlManager and static resources

I have a flash that requests an XML but It look for it in the same folder, since I’m using PATH on my CUrlManager the request goes to localhost/project/site/images.xml

I want the request to map to localhost/project/swf/images/xml, I tried adding this in the rules ‘site/images.xml’=>‘swf/images.xml’, but is not working, any ideas?

Your .htaccess rewrite rule probably serves the file because it exists on the file system. You’ll probably need to add some redirect or rewrite logic in the htaccess file and not in Yii

I resolved it by adding this rule:


putting my images.xml in the project root, and pointing the images (inside the images.xml) to images/…