Rewrite course url matcher to not be greedy