converting https to http

hello, I deleted the ssl certificate, but how can I change https to http?

You can just type http. If you forced https, just replace that with the following:

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

EDIT: Hopefully, you did not use HSTS. If you did, your site will be temporarily unavailable.

Please note that if you want to redirect people from HTTPS to HTTP, you need a valid SSL certificate. If no HTTPS connection can be established, you are not able to serve any redirects.


but normally after removing the ssl certificate, isn’t it supposed to return http?

Not if the browsers have learned that you support https.

That’s… exactly what I said?

No. It’s completely impossible to redirect people to HTTP if you remove the SSL certificate. IMO there is no reason to remove an SSL certificate, ever.

Whether you have an SSL certificate or not only controls whether your website is capable of using HTTPS. Whether you actually use HTTPS or HTTP can be controlled through redirects on your website (usually done through website configuration or .htaccess rules).

As for how to do that on your website? Simple: in the exact same way you moved your website to HTTPS in the first place. But now replace HTTPS with HTTP and vice versa.

But if you want to redirect people trying to connect to your website over HTTPS, you need a valid SSL certificate.


I…don’t know what I read there. Sorry

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.