【发布时间】:2012-11-01 12:09:19
【问题描述】:
我已经从这里为 Codeigniter 安装了 Tank Auth 身份验证库的基本安装:https://github.com/ericbae/XTA2/
一切正常,直到我从我的 config.php 文件中删除 'index.php':
$config['index_page'] = '';$config['enable_query_strings'] = FALSE;
现在我的浏览器进入无限重定向循环,并告诉我:
Firefox 检测到服务器正在重定向请求 这个地址永远不会完成。
Firebug 看起来像这样:
我的 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 文件,它似乎与这些项目配合得很好。
到底是什么原因造成的?
【问题讨论】:
标签: php codeigniter tankauth