Fix URL regex to work on localhost