-1

ここで何が間違っているのかわかりません。すべてがうまく見えます。しかし、ページの読み込み時にエラー 500 が発生し続けます。

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Site extends CI_Controller {
    public function index() 
    {
        $this->home();
    }

public function home()
    {
        $this->load->view("header");
        $this->load->view("site");
        $this->load->view("footer");
    }

public function about()
    {
        $this->load->view("header");
        $this->load->view("about");
        $this->load->view("footer");
    }
}

mywebsite.com/site/about にリンクすると

500 内部サーバー エラーが発生します

私は何を間違っていますか?

私のhtaccessファイルは次のようになります

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|scripts|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]

アイデア?考え。私はそれが愚かなことだと知っています。数か月間、CI の作業を行っていません。

ありがとう

4

2 に答える 2

0

私は問題が何であるかを知りました。htaccessファイルの何かでした

私はそれを機能させるためにこれをしなければなりませんでした

RewriteEngine On
RewriteBase /
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]

ありがとう

于 2013-11-03T07:17:10.673 に答える