title: How to pass multiple variables from URL request in Codeigniter?
body: <p>For each user on my site, they have their own profile page with a list of articles. When the user clicks on one of the list items, an animation happens and then an AJAX call brings up a div that displays the article. At the same time, I use some javascript to force a URL change to reflect this:</p>
  
  <pre><code>http://www.example.com/UserName/Hello-World-Article
  </code></pre>
  
  <p>When the user clicks the back button in their browser, it calls the javascript function to animate going back to the listview state.</p>
  
  <p>So far so good. But let's say the user enters the above URL into their address bar and presses enter, here is the question:</p>
  
  <p>How do I pass the 'UserName' and 'Hello-World-Article' variables into Codeigniter and use them properly in this context?</p>