title: Make Pretty URLS with htaccess?
body: <p>I made a php mvc for a school project, and I've never used htaccess before but I want to make my URLs look pretty...</p>
  
  <p>Right now the URL's are <code>/?controller=posts&amp;action=index</code> but I would like to have them show as <code>posts/index</code> which is <code>Controller/Action</code>.. I also have a folder called "assets" with has my css files and images.</p>
  
  <p>Is this possible to do without breaking my assets folder and site?</p>
  
  <p>Thanks :) </p>
  
  <p>EDIT:</p>
  
  <p>I tried the following code but if I go to <code>/posts/index</code> it shows the homepage &amp; if I go to <code>/?controller=posts&amp;action=index</code> it doesn't change the name or anything</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^([^/]*)/([^/]*)$ /?controller=$1&amp;action=$2 [L]
  </code></pre>