CodeIgniter Forums
Maximum number of internal redirects - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Maximum number of internal redirects (/showthread.php?tid=18742)



Maximum number of internal redirects - El Forum - 05-16-2009

[eluser]SeasonedCoder[/eluser]
Howdy,

I have this .htaccess file:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|.*\.css|.*\.png|.*\.js)
RewriteRule ^(.*)$ /index.php/$1 [L]

Everything works perfectly on my local setup.

But when I tried to install my site on the remote server I get error 500 with this message:

Quote:mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.

Do you have any ideas?


Maximum number of internal redirects - El Forum - 05-16-2009

[eluser]TheFuzzy0ne[/eluser]
That's usually caused by a loop. Apache allows the admin to configure the maximum number of redirects to prevent such loops that can slow down a server, or in some cases cause it to crash.

I'd suggest changing your URI protocol to REQUEST_URI in your config.php, and see if that resolves the issue.