Tidbits

How to check if redirect from http to https is working

We can't rely on browser because some browsers sometimes cache the http protocol. The surest way to know if the redirect is working or not is by using curl command.

1$ curl -i bigbinary.com
2HTTP/1.1 301 Moved Permanently
3Cache-Control: public, max-age=0, must-revalidate
4Content-Length: 38
5Content-Type: text/plain
6Date: Wed, 07 Apr 2021 13:42:12 GMT
7Age: 291
8Connection: keep-alive
9Server: Netlify
10Location: https://bigbinary.com/
11X-NF-Request-ID: 43251a79-c795-4fd8-a00b-0fcdb8fd3a8c-12182388
12
13Redirecting to https://bigbinary.com/