CodeIgniter PHP Apache 500 Internal Server Error

前端 未结 5 1625
梦毁少年i
梦毁少年i 2020-12-08 21:39

I did a project in CodeIgniter. It\'s working fine on my localhost, but giving \"500 Internal Server Error\" on the remote server. This is my .htaccess file con

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 22:03

    try this out :

    RewriteEngine on
    RewriteCond $1 !^(index\.php|public|\.txt) 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?$1
    

    Probably you have problem with your htaccess file. It's helped me as well.

提交回复
热议问题