Customize url

hi, this is my first post and iam a newbie,

Iam developing a yii app, i work like to customize my url like ==>

And my file structure is like,

protected -> views -> site -> mypages -> pages

and i use site controller for my mypages folder also

thanks in advances

set rules in Url Manager in config like this -





        'page1'=> 'site/mypages/page1',