Test http, https, www and non-www at once
check www and non-www redirect | test http to https redirect | duplicate content www vs non-www | check all domain variants redirect | curl | redirect | www | https | seofor u in http://example.com/ http://www.example.com/ https://example.com/ https://www.example.com/; do curl -s -o /dev/null -m 10 -w "%{http_code} $u -> %{redirect_url}\n" "$u"; doneRequests the homepage in all four combinations. Correct is exactly one variant with 200, while the other three redirect directly to it with 301. If several variants answer with 200, duplicate content is created and signals are split across multiple URLs.
Note: Status 000 usually means there is no DNS record or no valid certificate for that variant. The entry on redirect count and final target shows redirects that go through an intermediate step.
Also searched as
- check www and non-www redirect
- test http to https redirect
- duplicate content www vs non-www
- check all domain variants redirect