找不到对象! codeigniter项目中的错误404

时间:2015-05-08 20:30:28

标签: apache .htaccess codeigniter xampp

我见过其他用户提出的类似问题,但没有一个对我有用。我有一个CodeIgniter项目,在我的localhost中运行得很好。我创建了虚拟主机,以便我可以托管许多项目。我确实得到了该网站的第一页(登录页面),但登录系统后,我得到的错误显示在下面而不是下一个有效页面。

  

找不到对象!在此服务器上找不到请求的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>

我的登录控制器的部分片段:

function user_login()
    {
        if(isset($_POST['enter']))  //Login button pressed
        {
            $data = $_POST;
            $check = $this->login_model->login_match($data);

有人能告诉我哪里出错了吗?

1 个答案:

答案 0 :(得分:-1)

<?

?>

请改为尝试:

<?php 

?>

它对我有用。

相关问题