creates proper secure url.