I've set up a dev environment on my Mac, and I'm noticing some strange things that I haven't seen before.
When making a request to http://localhost/test, If I have a file in the site folder named
then Apache will fetch the first one it finds.
For example, if only "test.jpg" exists in the folder, then requesting http://localhost/test will render test.jpg in the browser.
Mac OSX is making a "guess" about the file i need, and it's really messing up my mod_rewrite rules because it seems like this guess is being passed through to the rules...
Issue First Seen When:
I setup a mod_rewrite rule to fetch the php version of a css file. If style.css was requested, then it would rewrite to style.css.php
I thought my mod_rewrite was working, because when I requested the file apache was producing the file. But I noticed that the HTTP Headers were not what I expected and AllowOverride was set to None. htaccess wasn't even recognized for the time being.
If anyone knows how I can better tune my mac for development, that would be awesome. Specifically, I need to resolve the issue stated above.
Thanks for your help.