title: How can I switch languages in CodeIgniter
body: <p>I have managed to create the site with CodeIgniter in two languages and the URL works fine when I switch it from there directly from:</p>
  
  <pre><code>localhost/projectname/en/index.php 
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>localhost/projectname/it/index.php
  </code></pre>
  
  <p>Now I am trying to create the two little flags that when clicked cause the URL to switch. I can't seem to find a way to do that, and I have tried a lot. If you have any experience with this thing, please help me out!</p>