洛谷网站内容的正式域名显然是www.luogu.com.cn,但是许多用户(包括我)经常在地址栏中只输入luogu.com.cn。
按照常理,洛谷应对http(s)://luogu.com.cn/path/to/page的请求用 HTTP status 301 / location header / meta http-equiv refresh 重定向到https://www.luogu.com.cn/path/to/page,且洛谷对http://luogu.com.cn的确是这样做的。
但是,请求https://luogu.com.cn会超时,且luogu.com.cn的443端口好像根本没开放。这对使用 HTTPS Everywhere 浏览器插件的用户极不友好,甚至制造了“洛谷日爆”的假象。
我认为洛谷应设置https://luogu.com.cn => https://www.luogu.com.cn的重定向,以方便开启浏览器“仅允许HTTPS连接”选项或安装有类似功能插件的用户的访问。
jzdpa0554@jzdpa0554-mac:~$ curl 'https://luogu.com.cn'
curl: (28) Failed to connect to luogu.com.cn port 443 after 75006 ms: Operation timed out