title: Error URL segment
body: <p>I created my own login page and social media (Facebook) with Codeigniter 2.1.2, then I wanted to use url redirect, for example:</p>
  
  <pre><code>http://mydomain.com/account/login/redirect_url/login/http://mydomain.com/
  1- redirect_url  // is a Method in account controllers
  2- login         // parameter define login or logout,when click link login/logout
  3- http://mydomain.com/ // Is the url for redirecting to, after login succeed.
  </code></pre>
  
  <p>In my localhost it's working well, but on my server it's not working. I know some reasons why does it work, because of <code>.htaccess</code> file</p>
  
  <p>Local:  </p>
  
  <pre><code>RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
  </code></pre>
  
  <p>Server:</p>
  
  <pre><code>RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]
  </code></pre>
  
  <p>I think that, cause by Question mark(?), Even facebook login is not working also. But I tried the code without <code>?</code> on the server, but it doesn't work at all, if I use <code>?</code> works all, but url only.</p>
  
  <p>My question is what should I do with this code?</p>