Using javascript location.replace as primary method, falling back on http-equiv