WEB-86Avoid
Meta refresh and JavaScript redirects
Don't redirect with <meta http-equiv="refresh"> or JavaScript. Do it on the server.
How to do it
Client-side redirects are slower, can fail when scripts don't run, and give search engines a weaker signal. Use them only on hosting that cannot redirect at all. Then use an instant meta refresh with a delay of 0, which Google treats as permanent. A delayed one counts as temporary. Pick the server's code as Use the right redirect code says.
How to check
Search the built pages for http-equiv="refresh", location.href =, location.replace( and location.assign(. None appears.
Sources
Related rules
- WEB-85 Use the right redirect code in Website
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/redirects-and-canonicals/client-side-redirects">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.