简体   繁体   中英

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?

in your .htaccess file paste this code:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM