duanshan3065 2017-03-30 06:20
浏览 89
已采纳

Codeigniter站点500服务器上的内部错误,但在本地计算机上工作正常

Here is my .htaccess file content-

<IfModule  mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

Even I have tried by removing everything from index.php then adding an echo statement. But same 500 internal error.

It works fine @localhost using virtual host like xyz.dev.

  • 写回答

1条回答 默认 最新

  • douzhaishan5462 2017-04-16 15:51
    关注

    Finally got the solution. Unfortunately it was file permission problem. When i upload files(even zip) through cpanel, file permission get messed-up. But when upload through FTP client like filezilla, it works perfect. thanks a lot for looking into this issue.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?