2015-01-30 1 views
5

codeigniter 프레임 워크로 작업 중이며 호스트에 업로드 할 때 내게 500 내부 오류가 발생했습니다.Codeigniter 500 index.php로 인한 내부 서버 오류

그러나 index.phpconfig.php에 추가하면 효과적입니다.

어떻게해야합니까?

RewriteEngine On 

RewriteBase /ci-framework/ 

내가 RewriteBase의 끝에서 /ci-framework/를 청소 할 때 또한 작동하지 않습니다 내 htaccess로에서

나는이 있습니다.

대단히 감사합니다.

+1

것은 당신 WAMP의 rewrite_modue가 켜져 있는지 확인을 ... APACHE> APACHE 모듈에서 > rewrite_module –

+0

@HardikRanpariya 나는 단지 청소'RewriteBase/CI 프레임 워크 /'와 그것은 작동합니다. 아무튼 감사 해요 :) –

답변

4

index.phpconfig.php 파일에 추가 할 필요가 없습니다. 당신이 .htaccess 파일에 다음 행이 있는지 확인하십시오 :

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