A
A
agent11562017-01-30 18:00:55
Yii
agent1156, 2017-01-30 18:00:55

How to further simplify the url?

http://agent1156.myjino.ru/post/static?category=АТЕЛЬЕ

How to remove post ?
'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
                 '' => 'site/index',
                
                
                '<action>'=>'site/<action>',
            ],
        ],

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-01-30
@webinar

don't write it in url

R
Rou1997, 2017-01-30
@Rou1997

In rules add:
Or:
Or move actionStaticto SiteController.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question