简体   繁体   中英

How do I prevent ALL my browsers (FF, Chrome, Safari and Opera) from redirecting localhost to https?

I can't for the life of me figure out why suddenly ALL MY INSTALLED browsers (FF, Chrome, Safari and Opera) redirect all my development projects under localhost to https!

This drives me absolutely bunkers. I've tried ALL the (non) solutions I was able to find by googling, and that's A LOT I can tell you. But NONE of these work. HOW do I gain control over HOW my browser acts once and for all, and disable this lame redirect for localhost?

Make sure you don't accidentally download the.access file from the server which contain this stuff:

# BEGIN HTTPS Redirect
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END HTTPS Redirect

# BEGIN Fix mixed content warnings
<ifModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
# END Fix mixed content warnings

There's another half day wasted... sigh!

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