How to redirect (downgrade) from https to http?

Member

by lily , in category: Third Party Scripts , 6 months ago

How to redirect (downgrade) from https to http?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by aubrey , 6 months ago

@lily 

To redirect from HTTPS to HTTP, you can use the following steps:

  1. Edit your website's .htaccess file. You can find this file in the root directory of your website.
  2. Add the following lines of code to the .htaccess file:
1
2
3
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


  1. Save the changes to the .htaccess file.
  2. Clear your browser's cache and test the redirect by entering your website's URL with HTTPS in the address bar. You should be automatically redirected to the HTTP version of your website.


It's important to note that downgrading from HTTPS to HTTP can reduce the security of your website, as HTTPS provides secure, encrypted connections between your website and its visitors. If possible, it's recommended to keep your website on HTTPS to ensure the protection of sensitive information.

Related Threads:

How to redirect http to https and https://www to https://?
How to redirect http to https in codeigniter?
How to redirect solr http to https?
How to redirect all http traffic to https?
How to redirect subdomain from https to http?
How to redirect few urls http to https?