Redirect to HTTPS if available
This script will attempt to make a request to the HTTPS version of the current URL. If the request succeeds, it will redirect the user to the HTTPS version of the site.
This approach ensures that users are redirected to the HTTPS version of the site if it is available, helping to prevent the leakage of sensitive data over an unencrypted connection.
Closes: #15 (closed)
Edited by Aleksandr Gumroian