dsharew
dsharew

Reputation: 10665

how to redirect https requests to http

I have a site on my machine (localy).
Users used to access it using both HTTP and HTTPS. Now there is a problem with HTTPS configuration.[ It is not working]
Is it possible to redirect HTTPS requests to the HTTP port temporarly?

Upvotes: 0

Views: 2271

Answers (1)

elo
elo

Reputation: 615

in your .htaccess file paste this code:

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

Upvotes: 2

Related Questions