301 redirect http to https htaccess wordpress

Hi, how can I 301 redirect the entire website from HTTPS to HTTP?

You might just want to do this in Cloudflare directly:

Otherwise you could do something like this with htaccess (untested):

RewriteEngine on
RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule (.*) https://example.com/$1 [R=301,L]

I am sorry to say, however I am afraid your topic and post content might sound a bit confusing to someone :thinking:

May I rephrase and ask again to clarify your intention, are you trying to achieve:


https to http

I am not familiar with this redirection, however if you’d only like to have HTTP version (insecured), kindly do as follows:

  1. Navigate to the SSL/TLS tab → Overview section of Cloudflare dashboard
  2. Select “Off” to disable the SSL for your Website
  3. Navigate to the SSL/TLS tab → Edge Certificates section and make sure “Always Use HTTPS”, “Automatic HTTP Rewrites” and “HSTS” options are disabled
  4. Make sure your origin host/server and web app works only over HTTP (WordPress configuration site_url, home_url parameters)

Today’s standards are quite good and secure. Unfortunately, there are some services which might require using insecure setup and a HTTP as in your case obviously.

Take a note from nowadays Web browsers, especially if you are using an option like “HTTPS-only”, from what it means you cannot open any HTTP website, only HTTPS.
They might do default HTTP to HTTPS redirection, or throw some warning, if so.

301 redirect https to http htaccess wordpress
Hello, can you share a tutorial on this?
https to ==== > http
I want it for my website which is Word Press

There are many ways to accomplish this, primarily depending on the webserver you are using.

If you are using Cloudflare, and you want to redirects all pages in your domain to HTTPS, you might consider checking the option “Always use HTTPS” in Domain->SSL/TLS->Edge Certificates.

If you just want to redirect one subdomain (or your root domain) to HTTPS, you can either:

  1. In Cloudflare, you can create a page rule. In Domain->Rules->Page Rules, click Create Page Rule. in URL, put yoursubdomain.yourdomain.tld/*. Remember to replace TLD with your actual top-level domain, your domain with your domain and yoursubdomain if you are using a subdomain (this includes www), if not remove yoursubdomain.
  2. In your webserver, you can create a redirection rule. You can see tutorial on how to do this on Apache and Nginx.

If you still have questions, please feel free to reply to this conversation.

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