bugfree3出现 /bugfree/site/login was not found on this server. 解决方案

来源:互联网 发布:丰臣秀吉大明朝知乎 编辑:程序博客网 时间:2024/06/07 17:11

bugfree3出现/bugfree/site/login was not found on this server.的解决方案


方法1

找到/var/www/html/bugfree/protected/config/main.php文件

修改

'urlManager' =>
    array (
      'urlFormat' => 'path',
      'showScriptName' => false,
      'rules' =>
      array (
        '<type:\\w+>/<id:\\d+>/<action:\\w+>' => 'info/edit',
        '<type:\\w+>/list/<product_id:\\d+>' => 'info/index',
        '<type:\\w+>/<id:\\d+>' => 'info/edit',
        '<controller:\\w+>/view/<id:\\d+>' => '<controller>/view',
        '<controller:\\w+>/<id:\\d+>' => '<controller>/view',
        '<controller:\\w+>/<action:\\w+>/<id:\\d+>' => '<controller>/<action>',
        '<controller:\\w+>/<action:\\w+>' => '<controller>/<action>',
      ),
    ),

灰色背景的showScriptName字段值为ture后,重启httpd服务器即可正常登录bugfree。

0 0
原创粉丝点击