Remove index.php in CodeIgniter

Posted by Gabriel Bianconi on Stack Overflow See other posts from Stack Overflow or by Gabriel Bianconi
Published on 2010-05-03T19:06:38Z Indexed on 2010/05/05 5:28 UTC
Read the original article Hit count: 316

Filed under:
|
|

Hello.

I'm trying to remove the 'index.php' from CI Urls.

I've tried many solutions, none of them worked. I've already set these variables in 'config.php':

$config['index_page'] = "";
$config['uri_protocol'] = "REQUEST_URI";

And my current .htaccess is:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^plugb.com$ [NC]
RewriteRule ^(.*)$ http://www.plugb.com/$1 [R=301,L]

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

The www prefix part works fine. But the 'index.php' part doesn't. If you want to check the webpage, here is it: http://www.plugb.com/index.php/home

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about codeigniter-url