added support for non-www urls like 'http://localhost:3000'