'domain won't redirect with HTTPS

I'm trying to set up a 301 redirect from example.com to example.info. example.info is already correctly set up to redirect HTTP to HTTPS (using GitHub Page's "Enforce HTTPS" option). I have the following DNS records (in Namecheap) for example.com:

URL Redirect Record     @     http://example.info
URL Redirect Record     www   http://example.info

Those are the only DNS records.

With those settings, I get the following results:

Why won't the redirect work with HTTPS? How can I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source