问题原文
原帖链接 · ryanC_1995 · CC BY-SA 4.0
I forwarded my domain to my IP address using google domain. I can access my website using https://my.domain or https://www.my.domain but if I don’t add https:// to start the address like my.domain or www.my.domain, I can’t get my domain redirected. Currently google has two A records (@ and www) automatically set up me.
已采纳解答
原帖链接 · Maximillian Laumeister · CC BY-SA 4.0
This means that your web server is not accepting connections over http (port 80). You'll need to configure your server to accept these and redirect (forward) them to https.
On a second note I think the terminology is getting a little confused here, and it's important to get it straight because it's the same terminology your registrar and hosting company will use. It looks like ryanc.studio's DNS is already pointed at your server's IP using A records, so now the trick is to make sure that your server is set up to forward http://www.ryanc.studio and http://ryanc.studio to https://ryanc.studio using HTTP permanent (301) redirects.
Setting up the forward is something that I recommend doing directly on the server (or directly in your hosting control panel) for simplicity. The process of actually setting up forwarding will differ depending on what type of control panel your server uses, or if you're hosting without a control panel, the actual server software (nginx, apache, etc.)
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
