大网数据广告活动
网站运营与故障问答

Can’t access my website without adding http:// before domain

· 52CE 我爱测

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…

问题原文

原帖链接 · 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.)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2020-02-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。