Image

Knowledge base → Redirecting from https to http for Apache2

[Virtual servers] [Shared hosting]
Date of publication: 28.09.2023

In order to redirect from https to http on the Apache2 web server, add the configuration specified in one of the examples to the .htaccess file.

Option 1:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*):NOSSL$ http://www.domain.tld/$1 [R=301,L]

Option 2:

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




No Comments Yet