How to redirect https to http?

ssl

#1

Hello. I’m new here.

I have removed the SSL encryption from my site. Now, I want to redirect all “https” traffic to “http”.

I added this line to the .htaccess file, but it doesn’t work:

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Does Cloudflare bypasses my .htaccess server rules?

Thank you,


#2

Cloudflare doesn’t bypass .htaccess, but it can interfere with it if there’s an HTTP/HTTPS conflict.

Your Cloudflare Crypto settings should have “Always Use HTTPS”, “Automatic HTTPS Rewrites” and HSTS turned off.

If you had HSTS Preload enabled, your visitors will be stuck on HTTPS until the HSTS Max-Age expires.


#3

Thank you sdayman.

I have done all this but the redirection is not working. Any ideas?

Maybe the .htacess file is not well configured.


#4

If you can’t straighten out the .htaccess approach, you could try creating a Page Rule that matches https://example.com/* and redirects it to http://example.com/$1


#5

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