I created a Yii application in the webroot. I enabled the Gii module and modify the .htaccess to remove the index.php part in the url.
I also have the urlManager
component defined in the config/main.php configuration file.
'urlManager' => array(
'showScriptName' => FALSE,
'urlFormat' => 'path',
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>'
)
)
When I enter http://www.mydomain.com/gii
in the browser, I get redirected to http://www.mydomain.com/gii/default/login
.
Obviously, there is no matching url rules
in the urlManager
. Does this mean that when Yii cannot find any matching url rule, it will then start looking for a matching module?