, , , .. http://DOMAIN https://www.DOMAIN, HTTPS, - www .
, "" .
, www, , .
, HSTS ( , ) : HTTPS. , HSTS , , HTTP- , "307 " HTTPS . ( , hstspreload.org, HSTS.)
, , :
, HSTS, .
() hstspreload.org:
HTTPS, HSTS ( ).
:
, , HSTS...
, HTTP HSTS. , HTTP Strict-Transport-Security . , SWI-Prolog HTTP-, :
?- http_status_reply(moved('https://stackoverflow.com'), current_output,
[strict_transport_security('max-age=63072000; includeSubdomains')], Code).
:
HTTP/1.1 301 Moved Permanently
Date: Sun, 12 Feb 2017 10:04:55 GMT
Location: https://stackoverflow.com
Strict-Transport-Security: max-age=63072000; includeSubdomains
Content-Length: 366
Content-Type: text/html; charset=UTF-8
etc.
, , TLS ( , !). , HTTP rightarrow, HTTPS, , () HTTP, . p >
:
SEO ( , ).
, , , , (!) , , .
, : , , HSTS, , , HTTPS ( , , HSTS!). , , https://DOMAIN rightarrow; https://www.DOMAIN, . , . , HSTS , preload , -.