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。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章