Welcome Guest, Not a member yet? Register   Sign In
[$config['index_page'] = ""] still requires index.php in url
#1

[eluser]pmhart[/eluser]
I have been trying to get my server working with codeigniter using a directory URI system. I have the latest version installed.

I set the following in my config:
$config['index_page'] = "";

And this is my htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>


For some reason, when I go to the site it still requires index.php to get the controller I expected.

domain.com/index.php/controller

but what I want is this

domain.com/controller

I emailed my server support and they said mod_rewrite is enabled...

I see the CI 404 page when I go to domain.com/controller, so because its not the default server 404, I know CI is being called.

This is why I think it might be my config, it's like I never updated it ... Is the config cached somehow?

Thanks!


Messages In This Thread
[$config['index_page'] = ""] still requires index.php in url - by El Forum - 07-06-2009, 09:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB