Problems With Url Manager


I have this website --> It has the following URL Manager:





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



The site works well, but please notice this hyphen: <lang:\w+>[size=“7”]-[/size]<action:\w+>. I would like to put a slash (<lang:\w+>/<action:\w+>) instead of the hyphen but if I do so the images of the site don’t display.

Anyone knows why putting a slash the images of the site don’t display?


Add base element to the main layout:

<base href="<?php echo Yii::app()->getBaseUrl(true) ?>">

or use absolute URL path in src:

<img src="/images/filename.jpg" alt="">

or, to make it fully portable:

<img src="<?php echo Yii::app()->baseUrl ?>/images/filename.jpg" alt="">

thank you, it worked!