removed krsort($urls)

this was done to allow addition of a "catchall" at the end of the $urls array.  Without it, it will match the catchall first and then ignore other rules.