Problems With Url Rewriting

Hi,

I am quite new in url rewriting and I have a problem.

I have a “lang” parameter which is used to modify the language in each request. If I write the following the site doesn’t display well (images are not shown)




      'urlManager'=>array(

	     'urlFormat'=>'path',

            'showScriptName'=>false,

            'rules'=>array(

                '<lang:\w+>'=>'site/index',

                '<lang:\w+>/<action:\w+>'=> 'site/<action>',

            ),

	),

However if I change the slash (/) of the second rule to a hyphen (-) works well:




      'urlManager'=>array(

	     'urlFormat'=>'path',

            'showScriptName'=>false,

            'rules'=>array(

                '<lang:\w+>'=>'site/index',

                '<lang:\w+>-<action:\w+>'=> 'site/<action>',

            ),

	),

Does anybody know the explanation of this error? I would like the rule with a slash, not a hyphen

Can you provide some URL examples as well?

sure, the site I am talking about is this: http://ho33.com

as you can see, there is:

http://www.ho33.com/en-services

http://www.ho33.com/fr-services

and I would like:

http://www.ho33.com/en/services

http://www.ho33.com/fr/services

if you click on the links with slash you will notice that the images have disappeared

anyone knows how to solve this problem???

As per I see, the two url shows different pages.

http://www.ho33.com/en/services

http://www.ho33.com/en-services

Do you have anything else on the rules?

nope, I only have these two rules. The only way to make them to work is using hyphens, I don’t know why