public static String normalizeUrl(String urlOrig, String urlFrom) throws MalformedURLException {
        String fullUrl = "";

        String urlRootOrig = UrlUtils.getProtoUrlRoot(urlOrig);
        String urlPathOrig = UrlUtils.getProtoUrl(urlOrig);

        String s;
        if (urlFrom.isEmpty()) {
            fullUrl = urlPathOrig;
        // (1) 1文字目が "/"
        } else if (urlFrom.charAt(0) == '/') {
            fullUrl = urlRootOrig + urlFrom;
        // (2) 1文字目が "."
        } else if (urlFrom.charAt(0) == '.') {
            fullUrl = urlPathOrig + urlFrom.substring(2);
        // (3) 1文字目が "#"
        } else if (urlFrom.charAt(0) == '#') {
            fullUrl = urlPathOrig;
        } else if (urlFrom.length() >= 4) {
            s = urlFrom.substring(0, 4);
            // (4) "http"で始まらない
            if (s.equals("http")) {
                fullUrl = urlFrom;
            // 1文字目が "?" で始まる場合も含む
            } else {
                fullUrl = urlPathOrig + urlFrom;
            }
        } else {
            fullUrl = urlPathOrig + urlFrom;
        }

        return fullUrl;
    }