OK, I'm probably going to be told this has been answered, but none of the answers here have helped me.
What I need to do is have everything that is not an image, css, script serve up my index file that is in /public.
!!! THIS IS FOR LOCAL DEV ON MAC OS X !!!
SO:
localhost/~username/PROJECT_NAME/
localhost/~username/PROJECT_NAME/some_dir/
localhost/~username/PROJECT_NAME/some_dir/some_other_dir
All, should use /public/index.php
Images, stylesheets, scripts etc. are also within the /public dir at:
/public/images
/public/styles
/public/scripts
Nothing should 404... it should be sent through /public/index.php
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.
EDIT!!!
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.
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?