URL cleanup issue

I did a change as below in main.php and my whole application crashed which was working otherwise perfectly.

Change -


'urlManager'=>array(

			'urlFormat'=>'path',

                        //rules 

		),

So, I commented rules and uncommented urlFormat, but all images links and controllers are not working.

For ex-


<img src="images/base/logo.gif" width="307" height="65" border="0">

There is a images directory in root folder and it works if I comment the path, but with it uncommented, image is not found.

Similarly, redirects are not working !


/index.php?r=controller/action 

Please suggest what am I missing here

Thanks

read this : :lol: yii url

So, Should I use createURL in all actions of controllers ?

Right now, its like this -


				$this->redirect('index.php');




                        $this->render('view',array(

			'models'=>$data,

			'pages'=>$pages,

			'model_obj'=>$model_obj,

			));


				$this->redirect("index.php?r=user/default/Registration");