Learn to redirect https to http in Host C Panel
Sometimes it is necessary to provide an https to HTTP redirect to your C-panel host so that users who log in to the site URL that comes with HTTPS are automatically redirected to the HTTP site URL. Or the opposite mode, i.e., HTTP to HTTPS redirection in the C-panel host you want to implement. There can be various reasons to redirect the site to HTTP and https, such as installing SSL in C-panel hosting or removing SSL.
This tutorial from the host knowledge base will introduce how to redirect users to the site from the secure HTTPS protocol to HTTP. Using this tutorial, you can redirect users from your URL, HTTPS://site.com Redirect to http1//site.com 301. This paper introduces two methods that use htaccess. And using the plugin for WordPress sites, I will pay that you can provide redirect operations in Host C Panel.
Learn to redirect https to HTTP in Host C Panel
One of the best ways to redirect users from the secure HTTPS to HTTP protocol is to use a .htaccess file. There is in every content management system. To do this, you need to put code in the .htaccess file. First, log in to your host and then click on the File Manager option to be directed to the file management page in Host C Panel.
After entering the host file manager, go to Public_html and look for a file called htaccess. Look around. As it is clear from the first point of this file, it is considered a hidden file of hosts. In this case, if the ability to show hidden files in Host C Panel is not active, you can not see this file. So click on the Settings option at the top of the page.
After clicking on the Settings button, a window will open like the one below, in which you must activate the Show Hidden Files option and then click the Save button, which will save the settings and the .htaccess file. To be displayed to you.
Now on the .htaccess file. Right-click and select EDIT to be directed to the file editing page, and put the following code in the first line of this file.
# Redirect HTTPS to HTTP
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
As you can see in the code snippet above, redirection is done from HTTPS to HTTP, which will be automatically redirected to the site without SSL whenever a user enters the URL of the site where SSL is installed.
Redirect HTTPS to HTTP in WordPress
In the above method using htaccess. It applies to any host, and you can use it for any site builder system. But if you do not want to use code and WordPress, you can easily do so using the plugin. The redirect plugin from HTTPS to HTTP, which I will introduce, has been registered in WordPress, and so far, it has managed to allocate more than 100 active installations that will allow you to be redirected. To use this plugin, click on the button below to be directed to the plugin page in the WordPress repository, then a tutorial on how to install and work with plugins in WordPress; install and activate the plugin.
Download HTTPS to HTTP Redirect plugin
After installing and activating this plugin, there is no need to do anything special and just enough to keep it enabled forever so that every time a user refers to an address with SSL, it will be automatically redirected to an address without SSL.
Redirect from HTTP to HTTPS in Host C Panel
If you want to do a redirect in reverse, that is, redirect from HTTP to HTTPS in Host C Panel, it is enough to do the same, except that instead of the previous code, the following code at the beginning of the .htaccess file. Set your host.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Inserting the above code snippet will redirect all addresses in the Host C Panel from HTTP to HTTPS as 301.