.htaccess Code to Redirect HTTPS to HTTP

To remove the use of SSL certificates on WordPress or other sites where SSL is installed, add the code below to the top of the .htaccess file;

Redirect code: if it comes with www, redirect to www; if without www, redirect to without www:

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

If we are going to perform a permanent redirect to www or non-www;

If with www;

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) https://community.cryptosam.com%{REQUEST_URI} [R=301,L]

If without www;

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) https://community.cryptosam.com%{REQUEST_URI} [R=301,L]