Use meta tag and link tag for redirect instead of JS.