D
D
DanielPo2021-11-15 14:07:56
HTML
DanielPo, 2021-11-15 14:07:56

Why can my site open both via http and https at the same time?

I added a certificate to my site and everything is super, it works, but as it was said in the question, my site opens the same way without a certificate,
how can I make the site open only via https in any case, even if the user enters http?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2021-11-15
@DaniilPo

Add a redirect from HTTP to HTTPS, for example, via .htaccess
Add an HSTS header.

K
ky0, 2021-11-15
@ky0

To do this, you need to add an unconditional redirect to the web server config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question