Избавьтесь от Index.php в URL-адресах CodeIgniter

Как удалить «index.php» из моего URL?

Описание

Используя CI для создания простого приложения MySQL-Php, я не могу избавиться от тега index.php внутри URL-адреса:

localhost/CodeIgniter/index.php/Defult_Controller/index

.htaccess

application/.htaccess и application/cache/.htaccess :

 <IfModule mod_rewrite.c> # !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading # slashes. # If your page resides at # http://www.example.com/mypage/test1 # then use # RewriteBase /mypage/test1/ RewriteEngine On RewriteBase /CodeIgniter/ RewriteCond %{REQUEST_URI} ^system.* RewriteCond $1 !^(index\.php|images|js|uploads|css|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> <IfModule !mod_rewrite.c> # 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 </IfModule> 

apache.conf

 LoadModule rewrite_module modules/mod_rewrite.so 

приложение / Config / config.php

 $config['base_url'] = "http://localhost/CodeIgniter/"; $config['index_page'] = ''; 

PS: Im с использованием codeIgniter 2.5.1 и xampp 3.2.1