【发布时间】:2015-07-19 20:59:11
【问题描述】:
我看到其他用户提出了类似的问题,但没有一个对我有用。我有一个 CodeIgniter 项目,它在我的本地主机中运行得非常好。我创建了虚拟主机,以便可以托管许多项目。我确实得到了网站的第一页(登录页面),但是在登录系统时,我得到了下面显示的错误,而不是下一个有效页面。
找不到对象!在此服务器上找不到请求的 URL。这 引用页面上的链接似乎是错误的或过时的。请 通知该页面的作者该错误。如果你认为这是一个 服务器错误,请联系站长。错误 404 127.0.0.1 Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
这是来自www/site/log.../的错误日志
[Sat May 09 01:10:30.703354 2015] [core:error] [pid 5060:tid 1680] [client 127.0.0.1:57053] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sat May 09 01:10:30.703354 2015] [core:error] [pid 5060:tid 1680] [client 127.0.0.1:57053] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sat May 09 01:10:30.703354 2015] [core:error] [pid 5060:tid 1680] [client 127.0.0.1:57058] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sat May 09 01:10:30.703354 2015] [core:error] [pid 5060:tid 1680] [client 127.0.0.1:57058] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
还有我的 .htaccess 文件
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /accounting/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
我的虚拟主机设置:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/www/saseco"
ServerName saseco.dev
ServerAlias www.saseco.dev
CustomLog "C:/www/saseco/logs/saseco.local.access.log" combined
ErrorLog "C:/www/saseco/logs/saseco.local.error.log"
<Directory "C:/www/saseco">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>
我的登录控制器的部分 sn-p:
function user_login()
{
if(isset($_POST['enter'])) //Login button pressed
{
$data = $_POST;
$check = $this->login_model->login_match($data);
谁能告诉我哪里出错了?
【问题讨论】:
-
产生此错误的 URL 是什么?
-
这是登录页面的url。
http://www.saseco.dev/,点击登录按钮后生成的url为http://127.0.0.1/saseco/login/user_login@TimBrownlaw -
为什么你的
RewriteRule被注释掉了? -
我试图检查错误是否由于任何这些规则而出现,所以我在@Mike Rockett 在这里发帖时发表了评论并忘记取消评论
-
我也这么想 - 只是想确定一下。
标签: apache .htaccess codeigniter xampp