How To Config Url Redirection

Hi friends,

I am new to yii and i develop my site through yii framework. I have these 2 URL.



Both URL’s point same content. Now google webmaster shows me both have same content obvious. How to slove this issue. i mean how to redirect both URL request to single URL request. I want both URL request go to


In my config main.php file, i have maintained URLmanager config with this below regular experssion


Please help me to slove this issue

You can use the PHP function, http_redirect(), in the sites that you want to redirect from.

see for full documentation.

How to create [color=#0000BB]http_redirect in Yii. please let me know[/color]