Static Pages With Urlmanager


I’m having problems with setting up a controller action, to catch all my static pages.

Eg. I want these static pages to hit SiteController, actionStaticcontentpage:





In my config, this works

‘about’ => ‘site/staticcontentpage’

But when I try to catch the ones with slashes in them,

‘user/help’ => ‘site/staticcontentpage’

‘user/purchase/help’ => ‘site/staticcontentpage’

Nothing works, and I can’t seem to find any examples of how to make this work.

Can anyone help me?

do take at these articles might help you

Check this article:

'urlManager' => array(

            'showScriptName' => true,

            'urlFormat' => 'path',

            'rules' => array(

                '' => 'site/index',






                // another possability'<view:(about|impressum)>'=>'site/page',

                'contact' => 'site/contact',




I got it working with this code:


Which I had tried before. When I saw you wrote it, it gave it another go. And the problem was that I had another "catch-all" rule that triggered before mine. So all I needed was to move mine up above it.