fix rewriter for absolute URLs without protocol