title: .htaccess route everything to public/index.php
body: <p>OK, I'm probably going to be told this has been answered, but none of the answers here have helped me.</p>
  
  <p>What I need to do is have everything that is not an image, css, script serve up my index file that is in /public.</p>
  
  <p>!!! THIS IS FOR LOCAL DEV ON MAC OS X !!!</p>
  
  <p>SO:</p>
  
  <pre><code>localhost/~username/PROJECT_NAME/
  localhost/~username/PROJECT_NAME/some_dir/
  localhost/~username/PROJECT_NAME/some_dir/some_other_dir
  </code></pre>
  
  <p>All, should use /public/index.php</p>
  
  <p>Images, stylesheets, scripts etc. are also within the /public dir at:</p>
  
  <pre><code>/public/images
  /public/styles
  /public/scripts
  </code></pre>
  
  <p>Nothing should 404... it should be sent through /public/index.php</p>
  
  <p>I would have to back my code out for the next hour to list all of the combinations I've tried, but I'm sure this is probably pretty simple and I've just missed it somewhere.</p>
  
  <p>EDIT!!!</p>
  
  <p>As I suspected... this question was flagged as a possible duplicate right away. And believe me, I have combed over all answers and none of them have solved this.</p>
  
  <p>Maybe it's my bad as this is local dev on Mac OS X. SO I have edited the other content to reflect. Possibly this makes a difference?</p>