웹 사이트를 배포하려고하는데 내부 서버 오류 500이 계속 발생합니다. 홈 페이지를 잘 열어도되지만 다른 메뉴 탭을 열 때 500 개의 내부 서버 오류가 계속 표시됩니다. 또한 로그를 확인했지만 아무런 단서도 발견되지 않았습니다. 여기 내 서버 오류 로그를 보여 주었다 내용은 다음과 같습니다500 Codeigniter 배포시 내부 서버 오류가 발생했습니다.
<?php if (! defined('BASEPATH')) exit('No direct script access allowed'); ?>
DEBUG - 2013-03-20 11:36:44 --> Config Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Hooks Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Utf8 Class Initialized
DEBUG - 2013-03-20 11:36:44 --> UTF-8 Support Enabled
DEBUG - 2013-03-20 11:36:44 --> URI Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Router Class Initialized
DEBUG - 2013-03-20 11:36:44 --> No URI present. Default controller set.
DEBUG - 2013-03-20 11:36:44 --> Output Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Security Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Input Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Global POST and COOKIE data sanitized
DEBUG - 2013-03-20 11:36:44 --> Language Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Loader Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Config file loaded: application/config/asset.php
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: asset_helper
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: string_helper
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: url_helper
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: form_helper
DEBUG - 2013-03-20 11:36:44 --> Helper loaded: text_helper
DEBUG - 2013-03-20 11:36:44 --> Database Driver Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Native_session Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Form Validation Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Controller Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Model Class Initialized
DEBUG - 2013-03-20 11:36:44 --> Model Class Initialized
DEBUG - 2013-03-20 11:36:44 --> File loaded: application/views/view_home.php
DEBUG - 2013-03-20 11:36:44 --> File loaded: application/views/template.php
DEBUG - 2013-03-20 11:36:44 --> Final output sent to browser
DEBUG - 2013-03-20 11:36:44 --> Total execution time: 0.0295
Heres는 내 .httaccess
한다 RewriteEngine 에 RewriteBase는/indocreweb/
#Removes access to the system folder by users. #Additionally this will allow you to create a System.php controller, #previously this would not have been possible. #'system' can be replaced if you have renamed your system folder. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] #When your application folder isn't in the system folder #This snippet prevents user access to the application folder #Submitted by: Fabdrol #Rename 'application' to your applications folder name. RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] #Checks to see if the user is attempting to access a valid file, #such as an image or css document, if this isn't true it sends the #request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /indocreweb/index.php?/$1 [L] </IfModule>
우리는 mod_rewrite를 설치하지 않는 #IF , 모두 404의 #을 index.php로 보내면 정상적으로 작동합니다. 에 의해 #Submitted : 로그, 나는 그것을 일으키는 원인이되는 문제 나 무엇 무엇을 어떤 실마리를 찾을 수 없습니다 보여 404 /index.php
바로는 ElliotHaughin 작성한 ErrorDocument. 누구나 이것에 대해 생각해 봤어? :-(
감사합니다.
your.htaccess 파일에 문제가있는 것 같습니다 –
사이트 주소를 공유 할 수 있습니까? –
오류 로그를 확인하십시오. 500. –