1
我安裝了一個笨從這裏坦克驗證認證庫的基本安裝:https://github.com/ericbae/XTA2/笨坦克驗證 - 除去配置「的index.php」導致死循環
一切運作良好,直到我從我的config.php文件中刪除 '的index.php':
$config['index_page'] = '';
$config['enable_query_strings'] = FALSE;
現在我的瀏覽器進入無限重定向循環,並告訴我:
Firefox已檢測到服務器將以永不完成的方式將該地址的請求重定向到該地址。
螢火蟲看起來是這樣的:
和我的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>
這就是我與其他許多笨項目使用正常htaccess文件它似乎與這些工作很好。
究竟是什麼造成了這種情況?