Redirect Check

See where a domain redirects, and what is redirecting it

How does it work?

The Redirect Check requests a domain or URL the way a browser would and follows each redirect until it reaches a page. For every hop it records the status code, how the redirect was sent (a 3xx with a Location header, a Refresh header, a meta refresh or a script that sets the location), the address that answered, the TLS certificate and the DNS records. It then names the service doing the redirecting, such as a Cloudflare redirect rule or a registrar's domain forwarding, from the response headers and DNS.

Why does it check four URLs?

People reach a site in four ways: http and https, with and without www. Each one can be set up in a different place, so one often redirects correctly while another lands somewhere else, shows an error or never upgrades to HTTPS. A bare domain is checked all four ways at once, and the report says whether they all land on the same URL. A URL with a path is checked on its own.

Frequently Asked Questions

Why do my variants land in different places?

Usually because each variant is handled by a different rule. A common case is a redirect rule for www that sends visitors to https, while plain http on the apex answers the page directly without upgrading. Pick one URL to be the real one, then make the other three redirect to it with a 301 or 308. The report shows each variant's chain, so you can see which one is out of line.

Should I use a 301 or a 302?

Use a 301 (or a 308) when the move is for good, such as http to https or www to the apex. Browsers and search engines remember a permanent redirect and pass the old URL's ranking to the new one. A 302 or 307 says the move is temporary, so search engines keep the old URL indexed. The report warns when a chain uses a temporary redirect.

How does it know which service is redirecting?

From fingerprints in each hop's response and DNS: headers such as cf-ray or server, the addresses the host resolves to, its CNAME and its nameservers. Each match is listed as evidence under the hop. When a forwarding service sits behind a proxy such as Cloudflare, the hop says so with "via". When nothing matches, the service is left as unknown rather than guessed.

My redirect works in a browser but not here. Why?

Some redirects are not HTTP redirects. A page can redirect with a meta refresh tag or a script that changes the location. The check follows a meta refresh and simple location scripts, but it reads the script rather than running it, so a redirect built by a larger script or after a delay can be missed. Some sites also redirect phones or bots differently; the API's userAgent parameter checks what each of them gets.

Domain Intelligence APIs

Get started with our easy-to-use API docs.