So the first match line checks to see if it is a well formed url (ie an absolute url) and if it can't parse it then we will check to see if it is a relative url. Now that I think about it, the relative url is kinda scary since I don't think our static loader protects against relative urls properly. We'll have to fix that (ie the url is mainsite.com/static/../../../../etc/passwd)  The second one will try to see if appending the relative path url is now a url and then if its not a url he currently returns a bad url. I'm wondering if instead of leaving it to the router to toss out a bad url if we should rather drop the request right here.