changes https redirects from ip to domain name

This should allow any domain name to work with the server as apposed to
having a hard coded ip address.