Redirect from HTTPS to HTTP


There are some specific cases when you want to redirect particular URL or a single website to be opened through HTTP instead of HTTPS.
For that purpose you should add the following rewrite rule in your .htaccess file:

In top of your htaccess add:

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

More options

# Redirect HTTPS to HTTP
RewriteEngine On
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]


# Redirect HTTPS to HTTP
RewriteCond%{HTTP:X-Forwarded-Proto}=https
RewriteRule^(.*)$http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Was this answer helpful? 3 Users Found This Useful (28 Votes)