What is Redirects?
Also called: 301 redirect, Redirect chain, www redirect
A redirect automatically sends a visitor from an old or alternate address to another one, for example from www to non-www.
Why it matters
Long chains slow people and bots down. If both the www and non-www versions answer, your visits and trust signals are split.
How Onbiom checks it
Onbiom opens your homepage and counts the steps. Two or more redirect steps, or a loop, fails the check. One step is fine.
It also requests the www or non-www twin of your address. That twin should redirect to the main version. If both answer with a page, or the twin returns an error, the check fails. The plain http address is not tested here.
In your report this appears as: Direct address without redirect chains.
How to check it yourself
- Run the command below and read the result.
- Repeat for the www and non-www versions.
- Make sure each ends at the same final address in one step.
curl -sIL -o /dev/null -w "%{num_redirects} redirects, final %{url_effective}\n" https://example.com/Not sure about your own site? Paste your address and see in a minute which of these checks your site passes. Free, no account needed.
How to fix it
- Cloudflare
- Use a Redirect Rule to send one hostname to the other with a 301 status.
- nginx
- Add a server block for the alternate hostname that returns 301 to the main address.
- Apache
- Use a RewriteRule or Redirect with status 301 in your site configuration or .htaccess.
- Any website
- Ask your web person or hosting company to make the change, and send them the wording from your report.
Related terms
Sources and further reading
Last reviewed: