CodeIgniter Forums
Mod_Rewrite Help - 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: Mod_Rewrite Help (/showthread.php?tid=15461)



Mod_Rewrite Help - El Forum - 02-05-2009

[eluser]WeeJames[/eluser]
Hi Guys,

Working on a CI app at the moment and need a little help with mod_rewrite i need to use. In the case that someone is arriving from a domain which is not the main one, i need them to be directed to a different controller / method. At the moment I have the following

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^example\.com [NC]
RewriteRule . /index.php/different/method [L]

Which gives an internal server error due to the following error

Code:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Does anyone have any ideas how to rectify this?

Cheers

James