Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
The operating system my web server runs on is (include version): Ubuntu 16.04
My hosting provider, if applicable, is: Digital Ocean
I can login to a root shell on my machine (yes or no, or I don’t know): YES
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No, I am using
Hey sir, I issued an SSL certificate for blog a few weeks ago but due to some reasons, I wanted to remove the SSL certificate. So to remove the certificate, I deleted the files associated with that domain and uninstalled the certbot but till today, my blog is redirecting to HTTPS instead of HTTP.
Please help me.
Your site isn’t actually redirecting to HTTPS. Just your browser is.
Two reasons this could happen:
Your browser is remembering the 301 redirect that used to be there. A 301 redirect is called a “permanent redirect” because browsers will remember it indefinitely.
(Less likely) You used to have an HSTS header, but now it’s gone.
The test to figure out which one is happening to you is to visit http://www.legittechinfo.com/?a=dont-cache-me . If it redirects to HTTPS, (2) is probably the case. Otherwise, (1) applies.
You can Google the instructions to clear either the browser cache or the HSTS cache for whatever browser you are using.
You need to untangle the Apache configuration and virtual hosts, find where the redirects are, and change them.
If the site was using HSTS, you have to send a new HSTS header to undo the old one. And continue supporting HTTPS until the old header expires, if only to redirect to HTTP.
If there is some way that I can get SSL setup for both the address http://www.legittechinfo.com and http://legittechinfo.com I have no problem to stay with the HTTPS even I will be thankful to you for that <3