title: Can't redirect to diffrent method on the same controller under codeigniter
body: <p>Assume that I have a controller with two methods I want to redirect from method1 to method2 but it's not possible because of the following errors:</p>
  
  <p>Chrome: <code>Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.</code></p>
  
  <p>Firefox:<code>The page isn't redirecting properly</code></p>
  
  <p>How can I fix this?</p>
  
  <pre><code>class Site extends CI_Controller {
         function method1() {
             { ... Some Code ... }
              redirect('site/method2');
          }
  
          function method2() {
              { ... Rest of the code  ... }
          }
  }
  </code></pre>