title: Erroneous redirect behaviour
body: <p>I'm stuck with a problem as I can't find the reason causing such a behaviour.</p>
  
  <p>The problem in short:
  I have a site. When I go to <a href="http://mysite.com" rel="nofollow">http://mysite.com</a> - loads fine. The url doesn't change.
  When I go to <a href="http://www.mysite.com" rel="nofollow">http://www.mysite.com</a> - redirects to <a href="http://mysite.com/index.php/" rel="nofollow">http://mysite.com/index.php/</a></p>
  
  <p>Initially I had some rules in .htaccess, but now - I commented all of them, so the behaviour is reproduced with clean .htaccess.</p>
  
  <p>In config of codeigniter I have:</p>
  
  <pre><code>$config['base_url'] = "http://mysite.com/";
  $config['index_page'] = "";
  </code></pre>
  
  <p>I checked the apache config - didn't find any redirects that could behave like this.</p>
  
  <p>Any thoughts where to dig?</p>