I've been working in Codeigniter for a few days now & everything is going very well, accept I cant for the life of me get rid of the index.php in the url (from localhost/index.php/controller to localhost/controller).
I'm using CIs default index.php.
rewrite is enabled in apache.
$config['index_page'] = "";
$config['uri_protocol'] = 'AUTO';
(Though I've tried the other four settings for URI)
.htaccess looks like this.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
<Files "index.php">
AcceptPathInfo On
</Files>
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
I've tried the answers here and here
help would be wonderful
Thank you
P.S. I'm working in a sub-domain if that matters.