How to redirect https to http?

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,

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

Your Cloudflare SSL/TLS 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.

Thank you sdayman.

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

Maybe the .htacess file is not well configured.

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

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