.htaccess выдает ошибку 500

Я использую CodeIgniter и мне нужно избавиться отindex.php» в URL. Я скопировал файл .htaccess из учебника по codeigniter, опустошил $ config ['index_page»знак равно; и поместите .htaccess в корневой каталог. Без файла .htaccess он работает нормально, но безобразно: www.example.com/index.php/site/home По какой-то причине это 'не работает и просто бросает 500 'ошибка

Где ошибка и как я могу ее устранить?

заранее спасибо

Мой файл .htaccess:


    RewriteEngine On
    RewriteBase /

    #Removes access to the system folders by users.
    #Additionly this will allow you to create a System.php controller,
    #previously this would not have not been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^{.*)$ /index.php?/$1 [L]

    #When your application folder isn't in the system folder
    #This snippet prevents user access to the application folder
    #Submitted by: Fabdrol
    #Rename 'application' to your applications folder name.
    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]



    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php? and everything works as normal.
    # submitted by: ElliotHaughin
    ErrorDocument 404 /index.php

Контроллер моего сайта:

home();
    }
    public function home(){
        echo "default function started.<br>";
        $this->hello();
        $data['title'] = 'Home!';
        $data['name'] = 'Ilia';
        $data['fname'] = 'Lev';
        $data['operation'] = 'minus';
        $data['val1'] = 5;
        $data['val2'] = 7;
        echo $data['operation']."<br>";
        $data['result'] = $this->math($data);
        $this->viewLoad("home_view", $data);
        echo "<br>";
    }
    public function hello(){
        echo "hello function started.<br>";
    }
    public function math($data){
        $operation = $data['operation'];
        $val1 = $data['val1'];
        $val2 = $data['val2'];
        $this->load->model("math");
        return $this->math->calculate($operation, $val1, $val2)."<br>";
    }
    public function viewLoad($whatToView, $data){
        try{
            $this->load->view($whatToView, $data);
        }catch(Exception $e){
            echo "There is no such view";
        }
    }
    public function about(){
        $data['title'] = "About!";
        $this->viewLoad("about_view",$data);
    }
}

Ответы на вопрос(2)

Ваш ответ на вопрос