Improve url regex, fix dev server.