Welcome Guest, Not a member yet? Register   Sign In
How do I get out of this Codeigniter redirect loop hell
#1

[eluser]taewoo[/eluser]
CI: 2.0.1

My firefox is reporting

Quote:The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


Here's my .htacess
Code:
<IfModule mod_rewrite.c>
    DirectoryIndex index.php
    RewriteEngine on

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

</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>



Here's my config (the relevant parts)

Code:
$config['index_page'] = '';

$config['uri_protocol']    = 'AUTO';

$config['allow_get_array']        = TRUE;
$config['enable_query_strings'] = TRUE;
$config['controller_trigger']    = 'c';
$config['function_trigger']        = 'm';
$config['directory_trigger']    = 'd'; // experimental not currently in use


What am i doing wrong?

PS: Yes, mod_rewrite is enabled & working correctly
#2

[eluser]taewoo[/eluser]
Ok.. i dunno what i did... but it works now. Sorry guys
#3

[eluser]nomikos3[/eluser]
Yo know, I am using pyrocms that is CI based. I lost a lot of time when suddenly this error began to appear.
===
Well, It was due to a missing file. That file was supposed to have the default controller. Hope this helps to the future generations.
I.-




Theme © iAndrew 2016 - Forum software by © MyBB