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

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。

发布了105 篇原创文章 · 获赞 35 · 访问量 31万+

猜你喜欢

转载自blog.csdn.net/mimica/article/details/50561753
今日推荐