2012-11-01 1 views
1

무한 루프를 만드는 : https://github.com/ericbae/XTA2/CodeIgniter의 탱크 인증이 설정에서 '의 index.php'를 제거하면 나는베이스 여기에서 CodeIgniter를위한 <strong>탱크 인증</strong> 인증 라이브러리의 설치 설치 한

모든 것이 잘 작동, I까지 내 config.php 파일에서 '의 index.php'를 제거 :

$config['index_page'] = '';
$config['enable_query_strings'] = FALSE;

이제 브라우저는 무한 리디렉션 루프에 가고, 나에게 말한다 :

Firefox가 서버가 요청을 리디렉션하는 것을 감지했습니다.이 주소는 완료되지 않습니다.

enter image description here

내 htaccess로 파일은 다음과 같습니다 :

방화범은 다음과 같습니다

Options +FollowSymLinks All -Indexes 

<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase /path/to/my/site/ 

    RewriteCond %{REQUEST_URI} ^system.* 
    RewriteRule ^(.*)$ index.php?/$1 [L] 

    RewriteCond %{REQUEST_URI} ^application.* 
    RewriteRule ^(.*)$ index.php?/$1 [L] 

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

<IfModule !mod_rewrite.c> 
    ErrorDocument 404 index.php 
</IfModule> 

이것은 내가 많은 CodeIgniter의 프로젝트에 사용할 일반 htaccess로 파일과 그것들과 잘 작동하는 것 같습니다.

이 문제의 원인은 무엇입니까?

$config['uri_protocol'] 변경

답변

1

을 위해 속임수를 썼는지 나

에서 :

$의 설정 [ 'uri_protocol'] = 'PATH_INFO';

에 $의 구성 [ 'uri_protocol'= 'REQUEST_URI';

나를 위해이 문제를 해결했습니다.

관련 문제