I've recently been attempting to set up an Apache server on my local machine and everything is functional except certain URLs will throw a 500 error with no useful troubleshooting information.
I currently use a FallbackResource in my .htaccess file that will redirect any requests to a switchboard.php that handles routing. This works for localhost and urls that only have one slash, such as "localhost/Users" but anytime there is multiple directives, it crashes. Such as "localhost/Users/view."
The code uses the following regex and matching function to check for valid input, and it works in production, but I can't check the actual server settings to duplicate it.
preg_match('/(.*)\?/',$uri,$m)
Any ideas on what may be causing this issue would be greatly appreciated.