Guides · Performance

Redirect chain

One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.

What audibot checks

The number of redirects between https://<host>/ and the page that finally answers, following up to five.

Why it matters

Each redirect is another round trip before the page starts loading — and when the hop goes to another hostname, another DNS lookup and TLS handshake too.

How do I fix a redirect chain?

Redirect every variant straight to the final URL in one hop. A common chain is example.com → www.example.com → www.example.com/en/; send the first request to the last URL directly.

nginx: one hop from the bare domain

server {
    listen 443 ssl;
    server_name example.com;
    return 301 https://www.example.com$request_uri;
}

See the chain

curl -sSIL https://example.com/ | grep -iE "^(HTTP|location)"

Related tools

Other checks in Performance

Performance in the methodology ·All guides

This check is one step of the website launch checklist.

Check your site

audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.