W
W
wakenby2021-02-19 18:14:51
Apache HTTP Server
wakenby, 2021-02-19 18:14:51

When you go to the site, it automatically opens on http?

I set up https for the site, and if you write in the browser https://fixper.ru , then there is a secure connection. But if you just write fixper.ru, then it's not https, but http. I don't understand why there is an automatic connection via http.

I tried it in a new browser, suddenly the link was cached, and tried it from another PC, anyway, the connection automatically goes http, not https. What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
galaxy, 2021-02-19
@galaxy

By default HTTP, yes.
Set up a redirect and HSTS at the same time.

V
Viktor Taran, 2021-02-20
@shambler81

add to .htaccess

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question