• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.