replacing http:// with // for two resources