Welcome Guest, Not a member yet? Register   Sign In
Mod_Rewrite Help
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB