Redirecting domain from HTTPS to HTTP

Redirecting domain from HTTPS to HTTP using .htaccess in cPanel

Through this method, you will forcefully redirect all your https:// request to http:// through .htaccess in cPanel.

1. log in to your Cpanel.

2. Click on File Manager that contains on your first page.

File Manager
File Manager

3.  click on the setting button at the top of the right.


4. Check the Show Hidden Files (dotfiles) box and click Save.

Show Hidden Files
Show Hidden Files (dotfiles)

5.  Locate your site directory when you want to apply redirection and edit .htaccess File. In most cases site will be located in the public_html folder.

Public html

6. Then go to your website directory and find the .htaccess file. if your file is not present then create the new file with the .htaccess name.


7. Right-click on the file or find the edit button on the top bar and click on edit.

Edit htaccess
.htaccess edit

8. Copy and paste the below code. if any code will be present then add this code on the top of the file.

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

9. Click on Save Changes.

save Changes
Save Changes

Now, Clear the browser cache and visits your site using https:// and you will be redirected to http://.

Check your site, it Redirecting the domain from HTTPS to HTTP.

You can Generate automatic .htaccess as per your requirement through the below simple tool.