• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mod_Rewrite Help

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

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

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?



Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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