您的位置:首页 > 其它

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

2016-01-22 14:27 393 查看
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。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: