Fixed Redirection Bug

Re-ordering the url matching patterns seemed to fix it.