内部服务器错误Codeigniter HMVC

i've migrated codeigniter project to server from localhost but facing issue "Internal Server Error (500)". (i've Compressed whole project directory and extracted on server) What i've tried to fix this.

  • Placed index.html file in project root and it is working fine

  • placed default .htaccess file, also tried without this.

  • I tried to echo/print something into index.php file but it is not executing and throws the error "Internal Server Error"

  • i've tried to find error_log, and it is empty.

  • i've changed the $config['log_threshold'] = 4; and tried to find error_log file in application/log/ but it is empty.

  • i've checked the mod_rewrite issue on server and it is also fine and many other projects are executing with no issue.

i am wondering why it comes to index.html but doesn't comes into index.php? What other ways to find and resolve this issue?

I guess am late but i think you need to add a .htaccess in your root or public folder, that is, where the index.php is, and can contain these:

Options +FollowSymLinks
Options -Indexes
RewriteEngine on

# Send request via index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]