Add handling for files starting with 'assets/' to serve from custom directory similar to other static assets
Use REQUEST_URI and parse_url to properly handle paths Prevent directory traversal with stricter sanitization