After spending many hours debugging a simple htaccess file, I have discovered that Apache doesn't care about file extensions any more. Going to localhost/mypage is the same as going to localhost/mypage.php, or localhost/mypage.js. Whatever it can find.
How do I disable this? There is no htaccess file that is doing this for me.
Additionally, I think maybe related, is that aliases stopped working. I used to go to localhost/phpMyAdmin to enter phpMyAdmin which is stored outside of the htdocs folder. That started giving me a 404 the other day, so I just moved it inside the htdocs folder.
Also, going to localhost/mypage/something is the same thing as going to localhost/mypage
So, how can I add back in aliases and add back in the requirement for file extensions?